Orientation's change

0 favourites
  • 2 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • Hello guys!

    If Orientation > 4

    Change X of Sprite to Sprite.X + 2

    Ok... if i keep the phone flipped the Sprite will always go foward 2 pixels.

    But if what i want is :

    Every time the orientation changes, it moves the sprite.

    So... if i turn the phone a bit and let it flipped at that angle, the sprite will, in the first time, go 2 pixels, but then it will stay in that position.

    Logic's problem. Can anyone help? Thank you :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello guys!

    If Orientation > 4

    Change X of Sprite to Sprite.X + 2

    Ok... if i keep the phone flipped the Sprite will always go foward 2 pixels.

    But if what i want is :

    Every time the orientation changes, it moves the sprite.

    So... if i turn the phone a bit and let it flipped at that angle, the sprite will, in the first time, go 2 pixels, but then it will stay in that position.

    Logic's problem. Can anyone help? Thank you :)

    The System Condition "Trigger once while true" should make it work, you have to add it as the last condition

    Basically, Trigger Once While True becomes true when the other conditions passed from "False" to "True", and a tick after that, become False, so It should help you

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)