1 passable, invisible entity, move it around randomly, and give it the action tornado

Code:



action tornado_sprite()
{
var distance;
my.facing = on;
while(my.skill3 == 0)
{
wait(1);
}

while(1)
{
distance + = 1;
my.skill2 + = my.skill1 * time;
you = ptr_for_handle(my.skill3);

my.x = sin(my.skill2)*distance + you.x;
my.y = cos(my.skill2)*distance + you.y;
my.z += 1*time;
my.roll + = my.skill1*time;
wait(1);
}
}


action tornado()
{
my.passable = on;
my.invisible = on;
while(1)
{
//move me here...
you = ent_create(sprite_tga,my.x,tornado_sprite);
you.skill1 = random(10)+2;
you.skill2 = random(360);
you.scale_x = random(2)+1;
you.scale_y = you.scale_x;
you.skill3 = handle(my);
wait(1);
}
}




every second, the entity creates sprites, which rotate around it...


No idea if that works. Off course, if you want to use physics just like they do in that movie, you'll need to either programm fake physics yourself or get pro^^...

Looks awesome though, that movie. I'd love to play a game like that

Hope I was of any help...

Last edited by Germanunkol; 03/09/07 16:09.

~"I never let school interfere with my education"~
-Mark Twain