exit the game loop back to title screen
-
@waldron I guess that you could test if they were off the screen i.e. y position > gHeight() or you could add a collision box below the screen and test for collision with that?
-
Yeah I can get the height pos when I want it to execute its just executing the action I'm clueless about lol
-
If player pos height - 260 then
Dointro()
EndifMy coding is terrible
-
In my example above
if playerPosHeight < 260 then screen = 2 endif
The loop condition takes care of the rest
-
@pianofire thank you il try it now :)
-
@pianofire think il leave it, its not recognising PlrPosHeight once i enter the game loop
-
@waldron Is it a global variable (declared outside the functions)?
-
@pianofire i have no idea honestly im terrible at coding, it will probably click and il figure it eventually but for now il leave it
-
Ok no problem
-
@pianofire thats not to say i haven't learnt and il come back to this when it does click
thanks man, about to submit my game jam entry....