Explosion Youtube
fullviewmedia
Member Posts: 92
Hi all,
I have watched the video on creating an explosion and it works well with all of my actors except 1 (the main character), when the character is near the explosion the actor is drawn towards the explosion not moved away. This does not happen with any other actor and the settings are duplicated.
Does anyone else have this happen?
Thanks
I have watched the video on creating an explosion and it works well with all of my actors except 1 (the main character), when the character is near the explosion the actor is drawn towards the explosion not moved away. This does not happen with any other actor and the settings are duplicated.
Does anyone else have this happen?
Thanks
Comments
in the actor the pulls toward instead of away , there is a rule for this movement , and i guess that this rule has an equation , try to add *(-1) to it to reverse the rule.
Roy.
if distance from blast is less than 300
change velocity
(vectorToAngle(-( game.blastx - self.Position.X ),+( game.blasty - self.Position.Y )))
rotate to angle
(vectorToAngle(( game.blastx - self.Position.X ),-( game.blasty - self.Position.Y )))
change atribute
magnitude( game.blastx - self.Position.X , game.blasty - self.Position.Y )
This may have come from an old video
Thanks
JOhn
Thanks
"In the change velocity behaviour you have
speed
400*(game.distancefromblast*4)"
I have the following which came from the video and seems to work ok in the video
change velocity
(vectorToAngle(-( game.blastx - self.Position.X ),+( game.blasty - self.Position.Y )))
It also works well on other actors, maybe i'll wait for the updated video, it will be something I am doing somewhere else maybe and i'll just need to read through the code again.
Thanks
Thanks
John