0 Favourites

Orientation's change

  • 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 :)

  • Construct 3

    Buy Construct 3

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

    Buy 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)
Similar Topics Posts Views Last Post
Unread hot topic Locked topic
195 16,194
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
102 6,400
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
62 5,395
cjbruce's avatar
cjbruce