SAPDX's Forum Posts

  • 6 posts
  • Here is a Capx i have done for you to test.

    By pressing " i " you can switch the visibility of the two buttons (it's the same logic if you ask if it's a sprite visibility or Layout / layer). The red button is clickable even when hidden (that's not what we want) but the blue one is only clickable when visible. And this, because i said : If button blue isn't visible then deactivate the group (where all the actions for the blue button are), this way you can easily make many actions, for various buttons inside a single group and deactivate the whole thing by only doing one check (the visibility).

    Thank you - that was incredibly helpful.

  • The example I showed you was in construct 2, I guess in construct 3 is different. You posted the topic in the construct 2 side of the forum so I thought we ware talking about construct 2 sorry.

    My fault actually. I posted here since there seems to be more activity.

    Thank you though.

  • Thank you,

    I've tried disabling setangle in the 8 direction behavior panel, and added anglelerp(sprite.angle , sprite.8direction.angleofmovement, 50*dt)

    angleofmovement doesn't seem to be a valid entry, so I tried replacing it with MovingAngle, but still no luck :/

  • Thank you.

    I've tried various angles and time combos...

    That doesn't seem to work in combination with the 8 direction behavior?

  • Thanks - in Construct 3 I only see No, Smooth, 90* and 45*

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi everyone.

    I'm using the following image as a moving sprite with 8-Direction behavior.

    Problem:

    When I hit the up/down/left/right arrow keys, the sprite flips towards the selected direction/arrow keys.

    How can I get the sprite to rotate smoothly towards the selected arrow keys with 8-direction behavior enabled?

    I've tried "System On Key Press" > "Rotate Sprite Towards" but I can't get it to work :/

    If the object is at 90 and I press the left arrow key to set it at 270 (etc...), how can I get the rotation to occur smoothly instead of it flipping towards 270?

  • 6 posts