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.

DarkBASIC Professional Discussion / Moving North South East and West

Author
Message
Ash273
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location:
Posted: 11th May 2010 01:00
I am working on a 2D, basic game, where you are a circle on a 6x6 board. you have to move in between rooms, collecting keys and answering riddles.
I know my coding abilities aren't the greatest, but here is my


This coding is in a do/loop function. For East and North, when you type it in, it moves as far as it can in that respective direction (so east would move 6 for example)

The south and west move 1 square like they are supposed to.
Is there something wrong in my coding?

If you would like the whole code, I will message it to you. It doesn't use any external data

Thank you
Ash
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th May 2010 14:39 Edited at: 11th May 2010 14:41
I don't know why your using those zone1 and zone2 things for??? Doing it that way will only let you move left and right if zone2 = 1. If you move up or down then you can't move left or right until you get back to the start place.

Likewise, if you move left or right, you can't then move up or down for the same reason.

But this works as intended and is a lot sleeker than your code. (But I hate text based controls. )


My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-26 04:28:06
Your offset time is: 2026-07-26 04:28:06