Ask here your questions to get help using GDevelop.
By komencanto
#44387 I made this event to flip horizontally a parallelogram after clicking on it by center mouse button but it flips only once, not every time I pressed the center mouse button. Where is my mistake?
flipping.png
flipping.png (3.55 KiB) Viewed 3819 times
Last edited by komencanto on Sat 30 Aug 2014, 23:21, edited 1 time in total.
User avatar
By 4ian
#44388 You must find a way to alternate yes and no :)
By Mats
#44390 You can use the middle button to control a variable.
Conditions:
The curser is on paral
Middle button is pressed

Sub-Event

Conditions:

If paral is flipped horizontally | Flip horizontally paral : Yes

If paral is NOT flipped horizontally | Flip horizontally paral : No
By Mats
#44392 Oh sorry, you also need a condition in there so it does not execute both sub-events... Otherwise, when it reaches the second sub-event, that will be true and it will flip it back. It should look like this:

Conditions:
The curser is on paral
Middle button is pressed

Actions:
Set Variable done = 0

Sub-Event

Variable done = 0 | Do = 1 to Variable done
If paral is flipped horizontally | Flip horizontally paral : Yes

Variable done = 0 | Do = 1 to variable done
If paral is NOT flipped horizontally | Flip horizontally paral : No
By komencanto
#44396 Maybe there is somewhere a working example of using flipping event/action? I just can not make it work.
For now I can just change the animation/animation frame of the object and it works fine.
User avatar
By erdo
#44405 I don't see what is the problem implementing all the advice you've received in this thread:
(3.76 KiB) Downloaded 159 times