Behavior for suspended balancing axe in platform dungeon game

adytt

  • Posts: 51
Hello I would need a bit of help as I'm trying to write a behavior for an actor obstacle inside a game.
The obstacle/ actor reffers to a balancing axe hanging on the roof that needs to move 90 degress to left and right in a semicircular motion.
Axe has no animation so I would like to know if it's possible to have it rotate around a point and such in order to gain this kind of semicircular movement
Picture attached for a better understanding.
Real noob here so any help is kindly appreciated.

LIBERADO

  • *
  • Posts: 2720
<a href="http://static.stencyl.com/games/35510-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/35510-0.swf</a>

Set the Origin Point of your axe actor to "Top Center":
   


Then, create this event in your axe actor:
   

   
That is all. It's that easy.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

adytt

  • Posts: 51
Wow thank you so much for helping.
This is exactly what I needed.
Once again thank you very much for taking your time to share your knowledge and help me out.
Kind regards!