View Full Version : Fan problem
Roneye
01-05-2003, 09:27 AM
this might be a newbie question, but here goes:
I've build a fan for the first time, the fan is just like the one in the subway level. I created 3 keyframes and I created the animations, and the messages:
startup
- this->DO_animate(1);
- this->A_play3dsound(....)
animation 1
send after - this->DO_animate(2);
animation 2
send after - this->DO_animate(3);
animation 3
send after - this->DO_animate(1);
I thought that it would work fine, but it doesn't. In the game, there seems to be a slight delay between the end of animation 3, and the start of animation 1.
how can I solve this?
Roneye
01-05-2003, 10:34 AM
here is the LVL file, it's very simple, the first thing I build was the fan, so that is the only thing that is properly textured.
LINK: http://www.toms-silksite.nl/level2.LVL
I hope someone can help me!
tommulder
01-05-2003, 10:57 AM
hmm this is strange im d/loading now i'll check it out n get back to you in 15mins or so...
this is just what i was goin to do in my level...
[ 01-05-2003, 11:03 AM: Message edited by: tommulder ]
tommulder
01-05-2003, 11:47 AM
ok i looked at your coding and nothin seemed wrong... i'll show you what i changed tho, i had it running with on gap...
made the fan static (f5 mode, "d")
re-assigned the pivot point (grind centre at centre, f5 mode, "p")
made the fan dynamic (f5 mode, "d")
remade the keyframes 1,2+3 at angles 0, 120, 240
remade the animations 1,2+3 at 0.5 secs each
re-write the FSMs for fan1:
on start up: this->DO_Animate(1);
anim 1, on end: this->DO_Animate(2);
anim 2, on end: this->DO_Animate(3);
anim 3, on end: this->DO_Animate(1);
and it worked fine, no hitches! so try re-doin the fan :S thats all i did images/icons/smile.gif
Roneye
01-05-2003, 01:06 PM
Thanks Tommulder!
I didn't quite understand the second part of your e-mail with that picture and stuff, but after remaking that exit, my level was back to normal! Thanks again!
Roneye
01-06-2003, 12:33 AM
Okay, the fan works now, but after I exported my level, it was up side down, I walked on the ceiling of my room!
what did I do now?
Edit, here is the new level file: http://www.toms-silksite.nl/level3.LVL
[ 01-05-2003, 12:43 PM: Message edited by: Roneye ]
tommulder
01-06-2003, 12:41 AM
hehehehe
u messed up when asigning the pivot point! images/icons/tongue.gif u selected the room and then did the pivot point on that images/icons/grin.gif hehe
u need to do this:
press f5 (to go into object select mode)
click once on the fan
(and assuming you have the grid centre point in the centre or the fan) whilst hovering over the fan w/the pointer, press "p"
it should say something like "set pivot point to grid centre?" say yes to that.
now the pivot should be at the centre of the fan.
to check this, in f5 mode hit "a" until it says in the bottom right corner "pivot" as opposed to "vertex". now when you go to rotate the fan, it should have a vertex tick in the centre of it. TA DA!!! images/icons/tongue.gif hope it helps get back to me if it doesnt. BTW u might have to remake the level to get the walking on ceiling fixed :S
Roneye
01-06-2003, 12:47 AM
well there is nothing wrong with fan, it just turns nicely without any delays. Only the level is up side down! That setting the pivot thing worked fine.
Is there nothing I can do to make my level in the correct position?
tommulder
01-06-2003, 12:54 AM
i sent you an email with a picture and instructions that COULD save your level ok?
let me know if it works.
Maddieman
01-06-2003, 12:56 AM
Solution to upside down problem - redo your exits.
http://forums.3drealms.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=18;t=001327;p=1#000 008
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.