lionz's Recent Forum Activity

  • Yep, did that resolve it?

  • Based on the lack of info the only way of answering this is to agree and say yes use variables. What do you mean by save your settings, you mean save the game after it is closed or save the choices picked going to a new layout? If the latter you use a global variable.

  • Set bullet enabled/disabled.

  • A beginner's method would be to create invisible trigger sprites at the exit areas of a room. On the trigger you have an instance variable, where the value is the name of the next layout to go to. On collision with this trigger you go to layout 'trigger.variable'. This involves building each level as a separate layout.

    A more advanced method would be something like reaching an exit in a room, then during that fade you would rebuild the tilemap data to create a different room, usually a json format string which contains the data for the tiles. This builds the new room in the same layout, but you would need to define logic for where the player spawns and probably store room data in an array.

  • If you do pick by evaluate, pick sprite_fighter where sprite_fighter.squad=x. Then set a variable to sprite_fight.pickedcount, the variable is the number of sprite_fighters where squad=x. You can then use this variable to compare if its 0.

  • What I mean is you have set 2 variables to 1 and 2 but they don't do anything beyond this. Where is the logic that uses the variables?

  • You create the tilemap first so it puts it at Z order index 0 on layer 0 then you create the sprites after this at index 1 and 2 on top of the tilemap. So you end up with a different Z order than what was in the layout view, not a bug though.

  • If each level is a different layout then you should be able to get away with - end of particular layout set global variable to x. Then back in the menu if lock.variable = to x, remove lock.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Notice the function doesn't pass any parameters through it so it defines some variables and lists the exact same events I described above. I feel like you could've created those events by now. Not sure much time was saved here.

  • You need to get into the habit of using one object, not many lock objects. You would give the lock an instance variable for level which is a number that relates to that level. I'm interested to know what logic you used to determine which level was finished and which lock to remove.

  • hi, looks like setting those variables to 1 or 2 does not relate to anything else in your event sheets. Also the variables are set to 1 and 2 by default which would cause problems.

  • On start of layout, wait random(x,y) seconds, create sprite.

    On sprite created, wait random(x,y) then create sprite at x=random(x,y), y=random(x,y)

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

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

26/44
How to earn trophies