Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 22:06
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, Quad, AndrewAMD), 4,941 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
movement and time #183156
02/10/08 14:58
02/10/08 14:58
Joined: Jun 2007
Posts: 63
Italy
Sonic220 Offline OP
Junior Member
Sonic220  Offline OP
Junior Member

Joined: Jun 2007
Posts: 63
Italy
it's strange, i haven't ever done it before.
If a want to create an action that in the first 30 seconds move the object along his x and in the after 20 along z and x, and then in the after 30 seconds roteate etc etc.
How can i do?
create a while like
while(1){
c++;}
while c < 100 move
while c > 100 && < 220 roteate

But it havent the right time.


~Vision Divine~
Re: movement and time [Re: Sonic220] #183157
02/10/08 15:23
02/10/08 15:23
Joined: Aug 2000
Posts: 1,141
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,141
Baunatal, Germany
var t = 0;
while (t < 30)
{
move along x;
t += time_step * 16;
wait(1);
}

while (t < 50)
{
move along z,x;
t += time_step * 16;
wait(1);
}

while (t < 80)
{
rotate;
t += time_step * 16;
wait(1);
}

Hope you get the idea...


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1