Jump to content
  • Advertisement
Sign in to follow this  
QuackTheDuck

XNA - Tile Engine With Collision

This topic is 1905 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i've been trying for a while now, but i'm not sure on how to make a tile engine that reads from an array, and for example if i put a '#', how do i make it solid? I've been thinking about something like this:

Reads from array: case '#': { new Solid(//some variables); }

So when the code runs through the Array and hits an '#', it creates, well, maybe a brick thats solid which you can stand on and stuff :)

Also, is it possible to maybe fix the background in the program Tiled, and then only run through an array with events or collision?

Any ideas, im thinking about a Mario stylish game :)

Thanks in advance ;3

 

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!