brunopalermo's Recent Forum Activity

  • There's a variable on the capx. It controls the speed. Fiddle with its value and check which suits you best...

    Cheers!

  • Yes...

  • Hey Zion!

    Check this capx and see if this is what you need...

    https://www.dropbox.com/s/exq6ntowmaq58 ... .capx?dl=1

    [EDIT] Saw dop2000 answered while I was writing the answer. Anyway, capx is done already. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Cheers.

  • You just copy the folder that contains all plugin files to the plugin folder.

    It's located at [Path to construct 2 folder]\Construct 2\exporters\html5\plugins

    Hope this helps. Cheers!

    I already marked it as duplicate and reported some time ago. A mod will probably fix this soon.

  • Hey Usvatron!

    Since I haven't seen your capx, I'm not sure how you create/destroy the bars. Ideally you should destroy them when the Skull is destroyed. If they're in a container this is done automatically, but, if they're not, just add a Destroy action for both bar elements together with the Destroy action for the enemy.

    What is happening now is that the enemy is dead and your line 99 is setting the bar position to (Skull.X - 20, Skull.Y + 45), since both x and y are 0 (there's no skull), the bar is sent to (-20, 45). The front element is probably there too, but since its width is being set to 0, because Skull.health is also 0, you can't see it.

    Hope this helps. Cheers.

  • Just use super huge values, like 10000, for acceleration and deceleration and it will fix this.

  • No worries, let me try to put it clearer.

    You have to create a group and put all events related to the functionality of those buttons inside that group.

    Then, you must create, outside this group an action that activates the group when the layer (the one in which the buttons are) is visible, and deactivates it when the layer is invisible.

    Something like that:

    Hope this helps. Cheers!

  • First, the actions must be outside the groups that will be activated/deactivated.

    Second, you don't disable a layout. You make Groups active or inactive, groups like the "ActiveButtons" on your pic.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey RoboticPhoenix!

    The Platform behavior has an setting called "jump sustain" for the exact behavior you're looking for.

    Everytime you "simulate jump" it will work, even if not using the default controls. The problem will be if you associate it to an "On" type event, since these events are performed once. You must call it from a "Is" type event.

    Examples:

    On key "Z" pressed | Player Simulate Jump 
                or     |
    On mouse clicked   |
    [/code:lvswtodr]
    Will not work.
    
    [code:lvswtodr]
    Key "Z" is down | Player Simulate Jump 
             or     |
    Mouse is down   |
    [/code:lvswtodr]
    Will work.
    
    Hope this helps. Cheers!
  • Just highlighting that although you MAY use a third party API or specific plugin, this is also feasible with basic php and a mysql db.

    A while ago ArcadEd made an excelent tutorial explaining how to save a leaderboard online, the principles are the same. You should check it at:

    https://www.scirra.com/tutorials/346/on ... -php-mysql

    Hope this helps. Cheers!

  • Your code is great and it solves a problem I had in mine which is the head "tugs" the body pieces, so, in longer snakes, the tail will only move if the head is further enough. Apparently that doesn't happen in yours, since it controls each body piece independently.

    Anyway, the idea was just giving an alternative for those who want to do it with no extra plugins or behaviors....

    Cheers.

brunopalermo's avatar

brunopalermo

Member since 7 Jun, 2013

Twitter
brunopalermo has 6 followers

Connect with brunopalermo

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies