collisions and gravity

Blitz3D Forums/Blitz3D Beginners Area/collisions and gravity

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.

"mysticlore" you were probably on the right track - although you have taken the collision code out of the code that you have posted. Make sure you put UpdateWorld in front of Render World:

UpdateWorld; Perform collision checking
RenderWorld
Flip
Wend
End

UpdateWolrd animates all entities in your world and performs collision checking.

ps The code thing didn't work as you have used the '<' symbols - use the square bracket ones '['.

Good luck.

Edit:
In fact, type in 'UpdateWorld' into Blitz then click on the word with left mouse, then press F1 twice and Blitz will give you a collision help demo.