lionz's Recent Forum Activity

  • Update the local storage value after you spend them

  • From what you're describing it's probably better to pass through the UID of the instance into the function then within the function you can compare the bools and return a value. So the if/else comparisons trying to determine some final value would be inside the function.

  • Not sure what you're asking? When you call the function you select the parameter to send through the function, in this case whether a boolean is true or false. Then within the function you do something based on the boolean value.

  • It's unlikely to be a bug, can you share what you did ?

  • That doesn't look like the level is scrolling, more like a standard platformer where the camera is following the player but an enemy is constantly moving towards you. Which bit do you need help with ?

  • Combining waits and loops and functions can be problematic and cause bugs so I try to stay away from that. To have more control with the timing and reducing bugs I like to use an approach such as : every X seconds, so you can control the speed - play array.at(var) where var is a global variable. Then underneath add 1 to var.

    Because this won't work in the same event as the button press you would put it in its own event activating it with another global variable that works as on/off. You set it to on with button press. To stop the var from counting up forever you also have a condition that global var is not greater than array.width (the number of values), else set counting var to 0 and on/off var to off to reset.

  • The confusing bit is the design, if it fades in when you approach and fades out when moving away then why do you want it to fade in and appear at the start of the game? Unless the player begins by overlapping it then it should fade in anyway based on the events.

  • You use Families when something applies to all object types within the Family. If you want objects in the Family to do different things then you pick the individual object types. It only makes sense to use LOS at the Family level if all object types within act the same way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have to create the banner again, it is destroyed when you change layouts, it is also destroyed when you use the hide banner action. You should create it again on start of layout. You can't create multiple banner ads or 'get flagged by admob'.

  • I like to use 'floor' to round down and it should work well here, 10.99 = 10 and 1.99 = 1 etc.

  • The instance variable should be on the family level.

  • Easy fix is to move to Construct 3 lol. I guess you could add values to rows of an array and pick a random row.

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