Why system don't want to remember this "substract"?

0 favourites
  • 7 posts
From the Asset Store
Tap the ball, control it, avoid touching spikes and score higher!
  • I have diffrent layout where user can upgrade tower. He click on Sprite57 and Experience points are - 20. But when I out from this layout and back again it's still same value of Experience. System don't save this but this works (he got this item).

    Player should lost this 20 exp. Maybe I should have any action for displaying downgrade experience in this layout.

    Or maybe this is reason. I have this on every layout:

  • I'm not sure what you're doing here, setting a global variable to itself? You might be setting experience on start of layout somewhere.

  • Save a copy of your project. Just in case, because this is gonna be dangerous.

    Add a new Event Sheet. Call it 'Globals'.

    Open both your event sheets (the one you have been coding in & the new one, so you have a tab for each one of them.

    Click the tab of your event sheet. Select the global variables. Press CTRL + X.

    The system will complain. Click Yes. All your events will look messed up. Do not panic.

    Click the tab for 'Globals', to bring that event sheet into focus.

    Press CTRL+v. The global variables are now moved to the new event sheet 'Globals'.

    Return to your event sheet and it will look complete again.

    Do NOT include that new event sheet in any other event sheet. Do not go make events in there.

    Just use it for all your global variables.

    Why ? When not included, those global variables will not re-initialise when you rerun layouts.

  • thanks guys but is this first image is correct? Is this tower upgrade system it's ok?

  • Yeah looks okay, its working, right?

  • Yeah looks okay, its working, right?

    Yes it working, but when I change layout and back again to upgrade layout - I see the same amount of Experience.

    I will do this upgrade system on difffrent layout because now it's on old template example of full game that a bought

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 99Instances2Go, you're a god for me I was struggling with this problem and you answered without knowing my question ^^

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