lionz's Forum Posts

  • Another way to do it is just use system "save" and it will save the game at the current state, so you could save every time you hit the main menu and it would also load from there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • And how does jetlivesdisplay object relate to the lives variable?

  • Assuming that all works, this isn't the event to display the lives, let's see that.

  • Yes the size of the array is number of levels. You have 5 levels but levels variable is set to 4. Problem is also you have to clear local storage because it will keep loading the old array of 4 when you've saved already. Changing levels variable won't fix it unless local storage is cleared first.

  • Well it's a problem with your events but can't see them. There is no need to use instance variables and global variables for the same thing so don't do that.

  • You do not have permission to view this post

  • I mean you're asking me if a line that doesn't exist is still true, not sure how I can help with that. All I can see is the manual and I cannot see this line about user event not required for NW.js.

  • Then it's resolved. I guess the request is too early for the browser if it's the very first event

  • From the manual : Note the browser may ignore this request unless the action is in a user-initiated event, such as a mouse click, key press, touch event or button press.

  • Looks like you're trying to pick out the player who collides then later on the player who is being collided with, that's not going to work. You'll have to rework that logic a bit and determine which one of the family members you are picking.

  • You would use a global variable to track the number collected, but also you would need 'Persist' behaviour to keep the ones you collected as destroyed when you restart the layout.

  • Because in each level you create the player again and he begins with default state and what I assume is instance variable lives. You can use global variable instead for lives which retains its value throughout, this is good for player stats.

  • Yeah that is correct but you also need to update the actions where you subtract food. You need to replace all use of the instance variable with the global variable.

  • If you add the 'scroll to' behaviour to the player then you will see the layers behind scrolling left to right etc

  • Replace it with system > compare global variable, with the same info. You can add it somewhere else first and drag it under it then delete the old one. Or press C, add it as a condition and delete the old one after.