D
D
dmitryuiux2022-03-27 18:44:40
Layouts and prototypes
dmitryuiux, 2022-03-27 18:44:40

How to reset the same object in Protopie in one scene?

On the object, I hung a tap and scale trigger that increases its length by a certain number of pixels. Now I need that when I click on the same enlarged object, it returns to its original position. Another tap trigger is wrong. Then it does not increase at all, there is a conflict of triggers. Creating a second scene is not an option, you need to in the same scene.

Please tell me how to do it right. Thanks

624084d969d50671619159.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alfred Fairyshin, 2022-04-02
@dmitryuiux

There are several ways.
If the object scales between two specific values ​​(for example, 320 and 500), then you need to:
1. Add a condition (Condition) to the initial Tap trigger that will check the value of the width (Width)
2. If width = 500, then scale the width to 320
If you need to return the object to the original width (320), and the dimensions can change as you like:
1. Add the original width to the variable
2. If necessary, scale to the value of this variable by some other trigger or condition
6247776804127173896041.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question