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.

Newcomers DBPro Corner / Move character?

Author
Message
ReFure
AGK Developer
14
Years of Service
User Offline
Joined: 24th Feb 2010
Playing: AGK
Posted: 16th May 2010 21:00
How do you move the character.

Ive created a male with a texture:


How do you rotate, or move it down?

Thanks,
Gutsplatt Games


roswell1329
14
Years of Service
User Offline
Joined: 12th Apr 2010
Location:
Posted: 16th May 2010 21:25
You should look up the following 3D movement commands in the help file:

ROTATE OBJECT
XROTATE OBJECT
YROTATE OBJECT
ZROTATE OBJECT
MOVE OBJECT
MOVE OBJECT DOWN
MOVE OBJECT LEFT
MOVE OBJECT RIGHT
MOVE OBJECT UP
PITCH OBJECT UP
PITCH OBJECT DOWN
ROLL OBJECT LEFT
ROLL OBJECT RIGHT
POSITION OBJECT
ReFure
AGK Developer
14
Years of Service
User Offline
Joined: 24th Feb 2010
Playing: AGK
Posted: 18th May 2010 21:34
Thanks


owlman
15
Years of Service
User Offline
Joined: 8th Apr 2009
Location: Italy
Posted: 24th May 2010 01:14 Edited at: 24th May 2010 18:14
hi Gutsplatt ..
I would write the program something like the following - which is only to give you an idea ... it has a lot of variables undefined so dont try to run it as is .. it is just an outline which will hopefully help you .. .. the code assumes the stated *.x file and *.jpg files are in your project folder. please feel free to use / change / ignore this code as you like .. this code also allows for a different set of animations to be played depending on the characters direction .. which doesnt have to be so - but might be more interesting ..



if effort>reward : gosub home : endif
ReFure
AGK Developer
14
Years of Service
User Offline
Joined: 24th Feb 2010
Playing: AGK
Posted: 26th May 2010 19:48 Edited at: 26th May 2010 19:49
WOW! Thats amazing! Thanks a lot! =D


Login to post a reply

Server time is: 2024-09-28 18:26:11
Your offset time is: 2024-09-28 18:26:11