Page 1 of 1

Need expert scripters

PostPosted: Thu Aug 23, 2007 5:38 am
by 98700
making a gime similiar (not the same) to flywheel. but i need to know how i can make it go faster for about 3 seconds(speed increases).

PostPosted: Thu Aug 23, 2007 2:42 pm
by cyber ruler
I havn't played flywheel, but I think I know what it's about.

create an global variable (intager) and make it so when you create your actor (do all of this on your main actor, your "flywheel") that variable will equal 0. lets call this variable speed for now, but you can call it what you want. I'm assuming you either use key down, or draw actor to make the flywheel move, but however you do it, instead of what you do to move, i'll just say for now that it's x=x+5, you put this (but use the numbers you want)

Code: Select all
if(speed==0)
{
    x=x+5;
}
else if(speed==1)
{
    x=x+8;
}


now what you need to do is make it so when you collect the powerup or whatever it is that makes you speed up, you make speed=1. also make it create a 3 second timer, specify the quantity as 1, and make a timer event for that timer and have speed=0 on that timer event.

I hope this helped

PostPosted: Thu Aug 23, 2007 3:24 pm
by 98700
thx for ur help but he needs to have his speed increase (no power up) over a period of time.

PostPosted: Thu Aug 23, 2007 3:36 pm
by 98700
whoever tells me how to do this +1 point for them!

PostPosted: Thu Aug 23, 2007 3:58 pm
by Oman
check this thread... i think its what u want...

http://game-editor.com/forum/viewtopic. ... lling+ball

PostPosted: Thu Aug 23, 2007 3:59 pm
by arcreamer
like i said, use a timer for like, 5000 then under timer , script editer... make velocity number higher for better speed

PostPosted: Thu Aug 23, 2007 4:00 pm
by 98700
thx a tun oman 1 point 4 u :P

PostPosted: Thu Aug 23, 2007 4:34 pm
by d-soldier
Heres a demo of controlling speed with a variable and speed-caps:

PostPosted: Thu Aug 23, 2007 4:54 pm
by arcreamer
goo demo dsd!

PostPosted: Fri Aug 24, 2007 3:05 am
by d-soldier
This is not motivating me to take all the time to make demos much... :?