Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Walking On Sprites [PB]

Author
Message
Kevin Picone
20
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 21st Jan 2010 04:55 Edited at: 12th Aug 2010 00:09
Walking on Sprite Collision Map

This example uses a set of sprites for as a collision map. The player (or character) runs pixel level collisions against this sprite set in order to determine what it's standing upon. The collision map in the example is made up of basic primitives (triangles and boxes)..




Code Example



Walking on Sprites

This example sets up a simple sprite scene than uses the RayHitSprite function to position a 'character' on top them.




Code Example

Login to post a reply

Server time is: 2023-01-27 01:35:52
Your offset time is: 2023-01-27 01:35:52