Kyatric's Forum Posts

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

    : Removed.

    Perhaps consider posting less variants of the same concept ?

  • Please, this is an English forum, try to stick with it, or at least always provide a translation with your topics.

    Do a research about car games/tracks/checkpoint, I remember there were examples around, can't remember exactly if those were in the tutorials or the forums though.

    I added a translation to your original message and moved your topic.

  • It's been a long week-end,

    I'm sure your message will/is being processed, please be patient.

    The support will get back to you, no need to bump this thread in the meantime.

  • tlearsakura: If you have issues with specific plugins, post in the specific topics of those plugins so that the author of the plugins can help you out.

  • I know ArcadEd used to have one, I haven't checked in a while but likely he's keeping on. (http://twitch.tv/arcaded)

  • Otherwise Scirra proposes a fantastic feature called the manual that you can consult and see what tools are already at your disposal, and build features around them.

    With the Facebook plugin, the Twitter plugin, etc... isn't it what pretty much you are asking ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    There are already several topics on the subject in the forums.

    Please do a search and consider searching in the appropriate forums before making a new topic.

    Closing.

  • Lordshiva1948: Your link doesn't work and doesn't allow anyone to see the demos you are referring to.

    You can't share a folder like that with dropbox, but rather public links to specific files.

    LittleRyuk: In the event where you get your attack going (your capx is so messy, I'm sorry, I can't pinpoint a single event, I'll leave the implementation up to you) add conditions that check the direction of your character and the mouse position (expressions mouse.X and mouse.Y).

    This way, when the character is facing left, but that mouse.X is greater than character.X you know you shouldn't allow the shoot to go.

    Implement it for all four directions (likely as subevent) and you're good to go.

  • This blog article all the informations and links on how to currently export to mobile with Construct 2.

    Note: You need to own a valid C2 license to follow those steps. Otherwise, just forget about mobile and focus on HTML5 development.