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

Topics - BigAnd

#1
Off Topic / Thanks Gernot
2011-Apr-02
Just like to give a public "Thank You" to Gernot for sorting out my licensing problems. He went above and beyond and shows what spirit and passion there is behind GLBasic.

Awesome support as always  :nw:

#2
Is there anyway to clear a screen (made with CREATESCREEN) to fully transparent?

I am using POLYVECTOR for drawing all my sprites from one large sprite sheet. So for collision detection, I am using 2 small screens (32x32) that I draw my player sprite into and the other I draw the enemy sprites. This way I can use SPRITECOL for pixel perfect collision detection.

The problem I am having is that the last image drawn into these screens is always left there, so after a while the screens fill up with garbage and becomes no use for collision detection.

The only way I have managed to get over this problem is to create the screens each game loop but as you can imagine, the game grinds to a halt and probably fragments memory very badly.

Is there an ALPHAMODE I am missing that will allow me to draw my sprites and clear the alpha as well?

Has anyone got any ideas for how I can over come this?

Cheers,
Andy
#3
I have a problem with music playback on the iPhone.

I have just added a second piece of music to my project but when the second piece of music starts, it starts at the same place the first piece of music stopped.

e.g.
Start first piece of music with PLAYMUSIC "tune01.wav",true
Wait 10 seconds
Stop first piece of music with STOPMUSIC
Start second piece of music with PLAYMUSIC "tune02.wav",true
The second piece of music starts 10 seconds into the wav.

I have tried this with mp3's also and it still does it. I have also tried adding a HUSH after the STOPMUSC just to see if that helped but with no luck.

This is not just done in a loop, its part of the game/intro loop, so SHOWSCREEN is called many times.

Hope you can help.
#4
Bug Reports / DIMDATA Crash
2009-Oct-24
When I have a huge DIMDATA spread over multiple lines using the " _", gpc.exe crashes.

When I say huge I mean nearly 1000 lines of 32 ints.
I don't really want to resort to loading them in from a binary file as the data is still being tweaked.
#5
Not really a bug as such but I am sure it worked in an older version.


When you try and compile your iPhone project in XCode it says there is "No launchable executable present at path."


To fix this, you have to expand "Targets" under "Groups & Files", right click "iPhone" then "Get Info".

Under the "General" tab change the name from "iPhone" to something like "MyGame".

Then under the "Build" tab, scroll down to "Product Name", double click that and change the text to the same as you did for "General", e.g. "MyGame". This should change the Product Name for Debug and Release.


As I said, its not really a bug but I am sure I used to copy stuff straight over to the Mac and run it without any changes. If I am talking rubbish just say so :)

Also, do I get a prize for "The Post with the most Quotation Marks 2009"? ;)
#6
I think there is a bug with ANIMCOLL on the iPhone.

It causes the debugger to stop with an EXC_BAD_ACCESS or the app to just terminate if in release mode.
This is of cause when there is a collision as the app works fine until then.

Code (glbasic) Select

SETCURRENTDIR("Media") // seperate media and binaries?
SETSCREEN 320,480,0
SYSTEMPOINTER TRUE
LIMITFPS 60
SMOOTHSHADING TRUE
LOADANIM "willy.png",0,24,24

GLOBAL MOUSEcount
DIM MOUSEx[10]
DIM MOUSEy[10]
DIM MOUSEb1[10]
DIM MOUSEb2[10]

GLOBAL x1=RND(296)
GLOBAL y1=RND(456)
GLOBAL x2=RND(296)
GLOBAL y2=RND(456)
GLOBAL frame1=RND(7)
GLOBAL frame2=RND(7)
GLOBAL hit=0

WHILE TRUE
MOUSEcount = GETMOUSECOUNT()-1

FOR i=0 TO MOUSEcount
SETACTIVEMOUSE i
MOUSESTATE MOUSEx[i],MOUSEy[i],MOUSEb1[i],MOUSEb2[i]
NEXT
IF KEY(57)
x2=RND(296)
y2=RND(456)
ENDIF

ALPHAMODE -0.999
DRAWANIM 0,frame1/8,MOUSEx[0],MOUSEy[0]
DRAWANIM 0,frame2/8,x2,y2

frame1=MOD(frame1+1,64)
frame2=MOD(frame2+1,64)

hit=0
IF ANIMCOLL(0,frame1/8,MOUSEx[0],MOUSEy[0],0,frame2/8,x2,y2)
hit=1
ENDIF
IF hit=1
PRINT "COLLISION!!!",0,0
ENDIF

SHOWSCREEN
WEND
END


Media:
http://www.andynoble.co.uk/willy.png