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! / 2d maze game

Author
Message
stoker
20
Years of Service
User Offline
Joined: 5th Nov 2003
Location: UK
Posted: 6th Nov 2003 23:41
Can any bright spark out there help me with a bit of code to insert an object into the beginning of a maze which will then move on its own, say, half its length every three seconds and which will need input from the directional buttons to change direction?
I'ts driving me nuts. Thanks in advance.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Nov 2003 03:00
Use a Data map! Where it can move place a zero. Where it can't move place a 1. Check in the direction it is facing for a zero. If it meets a 1 stop it from moving. Use scancode for arrow keys. When arrow is pressed left check for zero, same with other directions. Actually, this is almost identical to Pacman code.

Pincho.
stoker
20
Years of Service
User Offline
Joined: 5th Nov 2003
Location: UK
Posted: 11th Nov 2003 01:41
Thanks Pincho.
I'll give it a shot.
Stoker
highschool gamedude
20
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 15th Nov 2003 07:03
what exactly is a data map and how do you make it/how does it work can i have an example or something please?

if a tree fell in the forest and it hit a mime... would he make a noise?
UnderLord
20
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 15th Nov 2003 17:05
highschool gamedude i believe this is something like what pincho is talking about but not sure

http://www.freewebs.com/ingamers
load image "sp1.bmp",1
paste???? 2d games = fun....teach me
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Nov 2003 17:21
I can't remember who made this example. Anyway it's a platfrom game with Data collision.

Pincho.


Login to post a reply

Server time is: 2024-05-02 02:06:04
Your offset time is: 2024-05-02 02:06:04