Vuuv's Forum Posts

  • maybe you'll find them here: this.runtime.get_all_globals

  • I think I know the problem, but it's hard to explain for me. But I'll try.

    When you touch the button, while paper is playing, construct notices the touch and sets the button's animation to rock. Now construct goes on checking for events (upper events before lower events, since it's a script language). Two events later it checks for "Animation "rocks" is playing. Since we set the animation to rocks right before, this event is also triggered and sets player back to "rocks".

    I'm not 100% sure about the solution, but try this: Make A System->Wait 0 event right before changing to another Animation.

  • Hey,

    it's really dirty what you're doing there! You can't access the global variable, cause it's stored somewhere in the runtime.

    What exactly you want to do?

  • Maybe you can try and tell us where you're stuck. PHP and especially AJAX is not easy for beginners. Try to learn some basics and then try to get as far as you could get with the tutorial. I'll help you to fix all your problems, but I'm not willing to do other peoples work.

  • You could also use "Wait 0" after creation and still use a sub event.

  • You should check on every start of the game, if the game was played on this device before. If not, set the variables to default values.

  • What exactly you want to know? There a lot of things you have to know to do this. You need to learn PHP, MySQL and the AJAX technology.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How you want to make a login system without saving the data in a database? You need the database to make sure if players name/password are correct.

  • It's actually very easy: https://www.scirra.com/manual/120/webstorage

    All you need is there.

  • Show me what you've got now (also the on land platform). Cause it worked without any problems in my project.

    Or hand me your capx and I'll fix it for you.

    Edit: hey Buddy, I have to go now. Actually it's really not hard to do this. We're gonna fix this tomorrow

  • Hehe, yes Remove the first "Set animation to Jump" in the up arrow event.

    And the other "Set animation to jump" is a sub event in your code (But i think this doesnt make any difference)

  • This just worked perfectly fine for me

  • Did you invert the event?

  • How you want them to be created?

  • Hey

    I think there's an easier way. Use your "On Up arrow pressed" event.

    In this event make a subevent "Is animation "Jump" playing" and invert it.

    In this subevent Play your sound.

    UNDER the subevent set the Animation to "Jump"