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 Discussion / Zelda-Type Movement

Author
Message
Fighter Bluestorm
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location:
Posted: 24th Jan 2006 22:24
I want my object to move forward, back, left, and right no matter which direction my object is facing. also I want my object, to face the closest secondary object when I hold down the spacebar.
When I program it myself and the camera moves the object starts facing the wrong way and then the movement gets obscured...

AL: "Big Brother I Have Too Pee!"
ED: "Your A Peice Of Freakin' Armor!"
smallg
Valued Member
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 29th Jan 2006 12:41
movement should be like this..

that what u want?

as for the nearest enemy, u would need to work out which enemy is closest then point the player at it (using 'point' command) i.e. point object 1,enemyxpos,enemyypos,enemyzpos)...

but as to working out which object is closer, well it would need a for-next loop.... um and some other stuff, lol, not sure.

life's one big game
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 29th Jan 2006 23:32 Edited at: 29th Jan 2006 23:33
I managed something like this a LONG time ago.


You'll need these at the end of your program.



There's a few variables you need to set first though.




At least farting ferrets are better than stinky stoats.
Fighter Bluestorm
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location:
Posted: 30th Jan 2006 21:00
Thank you for te information...

AL: "Big Brother I Have Too Pee!"
ED: "Your A Peice Of Freakin' Armor!"
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 30th Jan 2006 21:49
Does it work then?


At least farting ferrets are better than stinky stoats.

Login to post a reply

Server time is: 2025-05-23 12:35:16
Your offset time is: 2025-05-23 12:35:16