Kyatric's Recent Forum Activity

  • LD32 theme: An unconventional weapon

    Use Sirkles to fight for you in the arena.

    Make money to cure and improve them, or even hire better ones.

    Play with the mouse or Touch input on supporting devices.

    Fullscreen button is in the top-left corner of each page.

    Be sure to leave feedback and enjoy.

    Ludum Dare Page

  • Oh I see. I hadn't understood the request like that.

    Just make it like a switch to prevent clustered screen filled with too much informations. ^^

  • Theme: An Unconventional Weapon

  • Animmaniac: The UID is already visible in the properties for any selected instance of most non global plugins in the editor.

  • Based on the auto-runner template you want to use the global variable "TotalDistance" with Linkman's idea.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If it is based on a PHP server (good luck with that btw), I guess you need to handle AJAX calls.

    You can check out the How do I FAQ for usage examples interacting with PHP scripts as well.

    You may also try the multiplayer plugin, and then only save the results of the game to the PHP server/database.

    This is a different beast though.

    As for the turn base gameplay, I had made a tutorial for a local turn based board game, I guess it needs a bit of modifications to be applied to an online multiplayer game but some of the logic may still apply.

    As you say, it's pretty much the same as on local, except you will be awaiting the transition signals from online.

  • You need, when quitting the layout, to somehow keep in memory the state/position and any relevant informations for the objects in the current layout.

    And you need, on start of layout to check if this is the first execution of the layout or if the layout has already been executed, in which case you do apply the saved informations to the current "scene".

    The persist behavior can indeed help with that, be sure to consult its manual article to know exactly how to apply it.

    Otherwise, to manually save data, you can use data structures like arrays to keep in memory the several informations.

    To know what informations to save, this completely depends on your project and what you are trying to achieve, which is, as LittleStain explain, unknown to us because of a lack of capx or even clear/detailed explanations.

  • Hey Flex, please don't post several duplicates of the very same topic, keep them to a single topic that's the best way to keep consistent and have all the informations you need.

  • Your second post was my question i had in mind .

    I had A LOT of webstorage functions in my game and i now am trying to tune them to LocalStorage.

    Somehow i do not get it working in any way. I can't even get a value to be written ( checking with debug LocalStorage shows empty ).

    Could you tell me why this isn't working:

    I use the "setup" key to set all values the very first time the game runs.

    P.s. Sorry if i am hi-jacking your topic.

    Well, as far as I can tell, you should have an action "Check item "setup" exists" in the "Start of layout" event, that would then trigger the "On item "setup" missing" event.

    Also, the new LocalStorage is asynchronous. It means, there is a delay between the moment the action is encountered, and the action is executed.

    In your first event, you likely restart the layout before any of the values are set to be written.

    Consider them like AJAX requests, they may vary in the time and order taken for them to complete.

    So here, that's where a "All requests complete" condition like Ashley is suggesting would be nice as Event nb 2 to which the action would be "Restart Layout".

    Currently, I'd try to have a "On item "setup" set" condition/event nb 2 that would contain the restart layout action.

  • You do not have permission to view this post

  • jorgespindola: Those forums are English only, please keep to it or at least always provide a translation alongside any message.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,405 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x11
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs