lionz's Recent Forum Activity

  • Looks interesting, keep going

    So you mean simulate control : jump ?

  • On the most efficient way to do what exactly? Looks like you already made good progrss, the cards are already stored in the array and you can pick from them.

  • You need to create the function, on the right side of the event sheet there is an Add button

  • It's probably because on event 92 you say show the warning and the only condition is that it must be in a certain location. I would also suggest using object overlaps instead of all the x,y checks but if you know what all that means fair enough, someone looking at the project file has no real idea.

  • That logic looks kinda reasonable. Based on that design I don't think there's a need for the variable on the enemy then, you can just pick all doors and say pick door where roomarea is lastknownroom that should be enough. The inverted condition about UID I don't know what the use is.

    Also move lastknownroom to a global variable so you don't need to keep picking that green object and you can easily track it in events and for any bugs occurring.

  • Have two variable on the door object which is the ID of the door to teleport to and also its own ID.

    Put the teleport event inside a function something like, pick door where door.ID=param : set position to door

    Then call the function when you overlap a door, pass as the param the door you are going to

  • You give local storage item a value but after you already checked local storage. Just set cash to 1 in the missing event. If it is showing NaN later when you grab it then refer back to the int conversion I mentioned above.

  • Set cash to int(localstorage.itemvalue), it converts the string to an int. Did you make those events as you mentioned or did you take it from an example file?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think the local storage value is a string so you have to use int(localstorage.itemvalue) if cash is a number.

  • You could make the objects global (not on a global layer) and use persist but this is kind of messy as you have to pick instances. I prefer to have the global hud layer for visual side and instead use global variables, this is more the norm I would think.

    The inefficient function you talk about, you are always going to need something to set the displayed values. You can either put it at the top of each event sheet or call it from one main event sheet that links to all layouts.

  • You do not have permission to view this post

lionz's avatar

lionz

Online Now

Member since 5 Aug, 2013
Last online 19 Jan, 2025

Twitter
lionz has 72 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