cant fall off platform. HELP :):)

Blitz3D Forums/Blitz3D Beginners Area/cant fall off platform. HELP :):)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I know. This is why I use a loop to move only one pixel at a time. If you skip 10 pixels you miss out the pixels in between.

example :
for i=0 to jumpheight
  dudey = dudey - 1
  if collision()=true then exit
next


Note that you would need to tell the function to 'return true' when the function changes something in the game.