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 top down enemy random movement

Author
Message
crystalgolem
14
Years of Service
User Offline
Joined: 8th Oct 2009
Location:
Posted: 17th Nov 2009 22:32
im trying to create a 2D top down game reminiscent of Zelda, using DarkGDK. I'm having problems trying to get the enemies to wonder around aimlessly. The enemies all have sprite sheets of 3 columns and 4 rows. i can get the enemies to appear but once i start the movement code i end up messing up everything. Any help would be appreciated.
crystalgolem
14
Years of Service
User Offline
Joined: 8th Oct 2009
Location:
Posted: 18th Nov 2009 06:49
UPDATE:

after about 3hrs of frustration i came up with this



however the problem im having is it changes directions everytime the game loop updates...i would like the dragon to at least move in a straight line for x amount of time (or pixel) before changing directions...any help is appreciated
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 18th Nov 2009 08:35 Edited at: 19th Nov 2009 18:56
nevermind

Login to post a reply

Server time is: 2024-10-01 18:41:25
Your offset time is: 2024-10-01 18:41:25