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 / Changing of position during animation - need help

Author
Message
xmj
14
Years of Service
User Offline
Joined: 4th May 2010
Location:
Posted: 4th May 2010 13:37
Hi, I have just started with DarkGDK but from the beginning i faced a problem which I can't solve. Let's say we have a 3D object, in my program it's a knight - a free object from Game Creator Store. What I want to do is to change it's position during walking animation - simple illusion of walking. I tried to do this on my own but I can't. I will be really glad i someone show me how to do this. Here is the code, simple stuff:


In attachment you have this object

Attachments

Login to view attachments
NightX
15
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 4th May 2010 14:43 Edited at: 4th May 2010 14:48
in you loop after animation speed put this.



It will move the object in its foward direction.

xmj
14
Years of Service
User Offline
Joined: 4th May 2010
Location:
Posted: 4th May 2010 15:08
Thanks for answer
You mean sth like this?:



I did something like this before and the effect was - first moving object and then animation.But I want my object moving during animation.
NightX
15
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 5th May 2010 09:26 Edited at: 5th May 2010 09:26
It should work ->



This WILL move you'r object in its Foward facing direction WHILE The animation plays.

haliop
User Banned
Posted: 5th May 2010 23:51
well you dont need object speed every single time just when changing its speed it will run cpu wise faster this way , one less commadn.

Login to post a reply

Server time is: 2024-11-19 23:48:15
Your offset time is: 2024-11-19 23:48:15