Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - spudgunjake

#46
I got it to work, But it has open a new cam of worms.

It was down to a sprite, I have a mixture jpg, png, and bmp. One of the bmp was corrupt I believe or GLBASIC doen't like a mixture of file types.

when I placed the A_WORD_LIST routine before the sprite load routine it worked, but if it was after the  Load Sprite routine it wouldn't.

Converted all the sprite to png and its working fine for now.  Many thanks for the help guys. Great software wished I found sooner a lot easer then COCO2d
#47
I have just taken out the A_Word LIST of the the external gbas file and inserted it in the main routine and it works. but this does help me.

if i print A_WORD_LIST$[0] I get whats in that cell, also if I print the list out it prints correctly.

Any ideas,
#48
your example worked but, and a big but.

I have to 2 list of words, lets say A_WORD and B_WORD, If I setup B_WORD first the error still their in B list not displaying cell 0  but this time A_WORD list is correct.

to correct the problem if have to add A_WORD_LIST[0]="A_WORD its doing me head in" at the end of the A_WORD  list once more.

To make matter worse if i do this


A_WORD_LIST[0]=" "
A_WORD_LIST[1]="A"
A_WORD_LIST[2]="B"
A_WORD_LIST[3]="C"

PRINT A_WORD_LIST[0] ,0,0
PRINT A_WORD_LIST[1],0,20
PRINT A_WORD_LIST[2],0,40
PRINT A_WORD_LIST[3],0,60

i GET

B
B
C

but if I put A_WORD_LIST[0]=" " at the end I get


A
B
C

Believe me this isn't difficult code.
#49
I am getting a Strange error with Global Dim Arrays

I define the arrays up out side my main but the strings in a external gbas file. I can put anything to array 0.

FUNCTION ARRAY_WORDS :

   A_WORD_LIST$[ 0]="First"      // error in arrays
   A_WORD_LIST$[ 1]="TEST"

ENDFUNCTION

Print A_WORD_LIST$[ 0], 0, 0  // prints TEST not FIRST

I have to do is this to get around this error.

   A_WORD_LIST$[ 0]=" "      // Space, if I leave this like "" if print FIRST as it was cell 0.
   A_WORD_LIST$[ 1]="FIRST"
   A_WORD_LIST$[ 2]="TEST"

print A_WORD_LIST$[ 1], 0, 0  //  prints FIRST

so all my for next loops have to start from 1 not 0,

any ideas
#50
I managed to do it another way. as well.

Is it true the getpixel command only gets from the back buffer and not from a virtual screen.

It would be nice to have the SETTRANSPARENCY command with work with any draw command. it would make life a lot easer

e.g drawsprite my_sprite, 0, 0, RGB(128,128,128) I remember on allegro you could do something like this to set TRANSPARENCY on the  fly.

#51
nice code, looks really good, thanks for the help.
#52
still no luck, heres the code, sorry for being a ass,  but still not working, help

      SETTRANSPARENCY RGB(255,0,128)
      DRAWSPRITE test[PINK_HOLE].Sprite_number, test[SAS_MAIN].MouseX, test[SAS_MAIN].MouseY

      SETTRANSPARENCY RGB(0,0,0)            
      
      GRABSPRITE test[ZOOM_KEY_SPRITE].Sprite_number,test[SAS_MAIN].MouseX, test[SAS_MAIN].MouseY,22, 22
#53
I see, I will try and have a go, Many thank to both of you.
#54
I think you missed understood me.  but thanks, john
#55
before going down the road  with this png file  is it going to allow me to have a round sprite or just a square with a hole in the middle showing the back ground.
#56
I need to grab a sprite from a background image , thats easy done, but I need to make it to display a round sprite not square Just like on the iphone when selecting text you get a round select tool.


in other words I need the  hole in the middle to be my sprite.

please help.