Quick scripting question
Posted: Sat Aug 27, 2011 6:21 pm
Hi,
currently finishing up my project and got a question how to write the following in script editor (if it even is possible) since I don't know the functions of all the commands yet:
if(Player 1 collides with switch)
{
if(Player 2's current animation is X)
{
Change Player 2's animation to Y
}
}
The problem is that, with my current knowledge, I only am able to give Player 1 another animation as soon as he hits the switch, but not player 2. The switch so far triggers a variable which changes the players animations as soon as he moves, but since I got two players and one of them switches, the other one may not move at the moment and the animation stays the same. Hard to describe and understand, I know, but I would need help for that. Thanks!
currently finishing up my project and got a question how to write the following in script editor (if it even is possible) since I don't know the functions of all the commands yet:
if(Player 1 collides with switch)
{
if(Player 2's current animation is X)
{
Change Player 2's animation to Y
}
}
The problem is that, with my current knowledge, I only am able to give Player 1 another animation as soon as he hits the switch, but not player 2. The switch so far triggers a variable which changes the players animations as soon as he moves, but since I got two players and one of them switches, the other one may not move at the moment and the animation stays the same. Hard to describe and understand, I know, but I would need help for that. Thanks!