Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
im have problem, im have on another layer1 script (if button has ben pressed destory object "car") (object "car" is be on layer2) and it's don't work, if im back from layer1 to layer2 car has don't destoroyed plz help
You can use a global variable to retain data between layouts.
Upon destroying the car on the layout where the car doesn't exist, set the global variable to 1.
In layout 2 -
On start of layout, if global variable=1, destroy car.
it's don't working, im tryed this, its have bugs
Develop games in your browser. Powerful, performant & highly capable.
please help, after break, im must see a new car. (on start new car is hidden)
You can do this way:
Event sheet 1 / Layout 1 = Create a global variable and:
Button, On clicked -> Variable set value to 0
Event sheet 2 / Layout 2:
Compare variable -> IF = 0
- Sprite -> Destroy