lionz's Recent Forum Activity

  • This is for Construct 3 help. In Construct 2 you could use a loader layout :

    https://www.scirra.com/tutorials/318/ho ... ng-screens

  • It just works in the browser, I don't see what's limited about that?

  • Well there is an example here which has level unlocks and ratings : https://www.scirra.com/tutorials/311/level-select

    To then save the game you can follow this : https://www.scirra.com/tutorials/526/ho ... -savegames

  • Well if I was to say do it a certain way, I would say scrap that local variable on font object. When you change to a new layout later on it will cause problems. The best way to do player health is to use a global variable and reference it. The variable is a value that is always there and changing. For the display of it, you are just referencing that value, so in this case the health is HPFont.currenthealth / HPFont.maxhealth. You should use a global variable so you dont need to reference an object, so playerHealth / 5 will do! It's just about getting familiar with the C2 basics. In terms of the actual text event, you separate bits out with an & symbol.

    To break it down even further so you have an understanding and can then go on to do it with the flower points. You store values such as health and items collected as a variable. They are always there in the background and changing, you can add and subtract from them. You can use a text object to display text, but also to display these variable values that are constantly changing during gameplay. Using SetText you can set the text to show a variable such as health. Every Tick is used to update the values constantly during the gameplay.

    Edit: if you check the link again, I've done this. I changed it to global health and coins for you.

  • If you check out my edit on event 13, I fixed the health. https://www.dropbox.com/s/rqxcattwlkygt ... .capx?dl=0

    When referencing a variable you need to do object.variable. In quotations "" that is just text.

  • That's a broken link and looks like a pdf file which won't be the correct capx file.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Share on dropbox or google drive!

  • Unlocking levels is a simple global variable, can be a bool, true/false etc. When tutorial is complete, set level 1 locked to false. When level 1 is complete, set level 2 locked to false etc. To save this information you can use system Save feature which will Save the state of the game at that point, essentially saving what is unlocked. If you're saving scores and things you can look into the local storage style save system.

  • Obviously I don't know exactly how your game works but you can do something similar to :

    Global variable for Score (which you probably already have)

    Global variable for DropCount, which starts at 0.

    As you add 1 to Score, add 1 to DropCount.

    When DropCount hits 10, drop an item, set DropCount to 0.

    Depending on how your game works, the drop event could be a pick of the nearest enemy, or one that was just destroyed etc.

  • In its original exported folder, you place it in Construct 2\exporters\html5\plugins and then add it as an object in your project.

    Go to the layout and insert object, then add rex's datetime or timeaway, whichever it is.

    Then on the event sheet, if you make new events the rex plugin options are available.

  • I guess C3 is still in a feeling out phase? C2 is solid so I will be sticking with it for the foreseeable future.

  • It's just one of those things that can be manipulated. You can use rex's to relate to device time whereby you compare the time it was when the game was last saved and the time it is now and judge how much time has passed and award the stuff. It doesn't solve your problem about adjusting local system time but I don't recall anyone providing a way of doing this, usually it's just a local storage method. I don't think it's possible to read from a server using that plugin either but it might be possible to read from a server through some other method.

lionz's avatar

lionz

Member since 5 Aug, 2013

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