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.

Dark GDK / 2d Arrays-Moving Sprites in Puzzle Games

Author
Message
Cooldude
16
Years of Service
User Offline
Joined: 10th Nov 2007
Location:
Posted: 28th Nov 2007 22:50
Hey.
Can any of you forum dudes give me an example of how to move a sprite on a grid system. My idea is to create an array and set all the squares to 0 meaning no sprite is there. I still don't know how to code that though!!! Can any of you give me some code???
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 29th Nov 2007 04:23
Create the array:
Store 1 where the sprite is:
If the sprite moves make the place it moves to say 1 and the place is was at say 0.

alus.portbb.com go there.
Quote: A book. I hate books. book is stupid. I know that I need codes but I dont know the codes -zenicanin14 the stupidest user in the world

Login to post a reply

Server time is: 2024-09-29 05:28:40
Your offset time is: 2024-09-29 05:28:40