(Here is what I wrote for now, but the while loop doesn't allow to looks like an animation. I even tried ifcount and resetcount inside the loop to make it changes the angle "step by step" but it makes the game bugs, thus I know all this is not the right solution) :
state rotate_door
ifvare mycount 16
{
setvar mybool 1
setvar mycount 0
}
ifvare mybool 0
{
addvar mycount 1
}
else
ifvare mybool 1
ifpdistl 1024 ifhitspace {
setvar temp 512
whilevarn temp 0 {
getactor[THISACTOR].ang angnum
addvar angnum 1
setactor[THISACTOR].ang angnum
subvar temp 1
}
}
ifvare temp 0 soundonce 412
setvar mybool 0
}
ends
useractor notenemy TEST_DOOR
state rotate_door
enda
I'd like to assign to the sprite a rotating speed ; is it possible at least ?

Help
Duke4.net
DNF #1
Duke 3D #1




