lionz's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • You didn't need to delete the instance variable though...revert those changes if you can so you return to your normal events. Replace the instance variable food with the global variable in events as you go.

  • No you just need them somewhere in the project and it's fine. You replaced the instance variable on player with the global so it should be working now?

  • Probably better not to use persist behaviour on the player, although you can make him global in properties. Easiest way though is to make the hp a global variable, you can change it and it keeps its state between layouts!

  • Instance variable will reset when instance is created on start of layout. You can make it 'Persist'. Or you can use a global variable for HP which is usual and remains the same across layouts.

  • If it's in the current layout you should also restart layout.

  • use the platform set disabled action

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies