newt's Recent Forum Activity

  • Line of sight allows you to cast a ray at an angle to check for collisions.

    Cast the ray in the direction you are moving via whatever control.

    Also you absolutely should not use pathfinding every tick.

    Its should be asynchronous every time. That's what the Boolean variable is for.

  • Player coordinates are relative.

    Also Los has raycasting.

  • I would suggest something like Line Of Sight in conjunction with Pathfinding.

    Bool variable "canmove" =1

    - player has Los to touchx,touchy, move to touchx,touchy.

    -else set "canmove" to 0,player find path to touchx,touchy.

    Player on path finished, set "canmove" to 1

    It can only be as smart as you make it.

  • I played around with the system save slot system, and I'm kind of torn between the two.

    The only issue with the save slot is that it would load all objects, even those that have the No Save behavior, since its just about the state of that object. Of course we're talking about the editor rather than run-time, so that's different. If the objects in the json didn't exist, they couldn't be placed in the editor, and I'm guessing that if they existed in the project, and didn't exist in the current layout, they would not get created by loading by json. My opinion on that anyways.

    Then as a single object.. you would have to load each one separately.

    To be honest I kinda think if you wanted to go down the path of pre-loading, you would most likely do more

    than one.

    Edit:

    Also I'm not sure how instances should be handled in the save state load. I mean by my definition you would have to have the exact amount of instances if the save had multiples, which is kinda ehh.

  • Here's an example using 30 seconds

    dropbox.com/s/my90ee9q6t7gdfn/unixtimecheck.c3p

    Change 30000 to 86400000, and check back tomorrow.

  • Id say Los, Physics, Pathfinding, Bullet, Platform. There's probably more.

    One thought as an alternative is the system save slots. Rather than do each object, save the entire layout with No Save behaviors on the ones you don't want.

  • It's called create object.

    Under the System object.

  • When the player initially starts the game save the date, unixtime to localstorage.

    When the player starts the game again, compare that date to the current one.

    If the time elapsed is equal to a day, overwrite the current local storage to the current date.

    Obviously if the game doesn't get restarted all the time, then you will need to check the time occasionally.

  • Same here:

    construct.net/en/forum/construct-3/general-discussion-7/discussion-possible-feature-148280

    Question is can we load behavior preferences as well?

    Im fine with it not adding anything to the object if they aren't setup for it already.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Its not.

    Store the current unixtime in local storage when they first log in.

  • I would use "unixtime" and compare the milliseconds in a day.

    So if unixtime-86400000 => storedUnixtime, then you know its a day

newt's avatar

newt

Member since 12 Nov, 2008

Twitter
newt has 27 followers

Trophy Case

  • 16-Year Club
  • Entrepreneur Sold something in the asset store
  • 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
  • Forum Unicorn Made 10,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • 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
  • Email Verified

Progress

31/44
How to earn trophies