Movement behaviors not working?

DigitalMan

  • *
  • Posts: 12
I must be doing something stupid here. I have an actor and added the "4 way movement" behavior to it. I add the actor to my scene. When I test game nothing moves when I press the arrow keys. I have my actor on the top layer of the scene. The bottom layer contains tiles I have set to no collisions. Is there another step besides adding the behavior to the actor? Do you still need to add any events to wire it up? I verified in game settings that the controls are set to the arrow keys.

RengadeQuarters

  • Posts: 98
Check to make sure it saved the controls I have been having  problems with it not saving them

liefdeisniets

  • Posts: 8
I have the same error once in a while... here an behaviour which i downloaded prevented my movement to work (even though this behaviour wasn't 'active' or programmed somewhere).

What i did was publish > flash, and played the flash which showed me an error log with the behaviour mentioned. in this case it was "sidescroller sword attack".. when i deleted that behaviour from my stencyl, my hero started walking again.

stefan

  • *
  • Posts: 2263
Make sure to add the behaviors to your actor BEFORE adding them to your scene.

DigitalMan

  • *
  • Posts: 12
I swear I tried re-adding the actor to the scene yesterday but tried it again this morning after reading your replies and it worked. Thanks everyone.

stefan

  • *
  • Posts: 2263
You can also double check if you did by double clicking on your actor, go to the inspector panel and enable customize. There you find a list with the attached behaviors. You can also fine tune your variables here.