• Advertisement
Sign in to follow this  

XNA - Tile Engine With Collision

This topic is 1635 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
Sign in to follow this  

  • Advertisement