Joskin's Recent Forum Activity

  • You changed the player animation frame ? Or the shield is rotating around the player ?

    If it's the frame when the timer is over set it back to the original frame and if you are rotating the shield around the player you can simply destroy the shield.

  • Try this !

    https://www.dropbox.com/s/qsznfal92abml ... ample.capx

    <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Read the manual ! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://www.scirra.com/manual/120/webstorage

    The steps :

    1) Save the data (Set local/session value

    Store a value (string or number) for a key in local or session storage. If the key does not exist it is created, otherwise its value is simply updated.)

    2) Read the data (LocalValue

    SessionValue

    Retrieve the value stored for a key in storage. If the key does not exist this returns 0.)

  • You should try by yourself or you ll never get C2 logic. At least try something and if it doesn't work post the capx here.

  • You should explain your bugs.

  • Did you publish the new version ?

  • Cache problem ? Try to delete you browser cache and reload the page.

    For deleting a game you have to contact the support.

  • Hi,

    You have multiple ways to do this, here is one :

    1) Add a Timer behavior on your character (https://www.scirra.com/manual/167/timer)

    2) Add a Boolean variable on your character named for example canTakeDamages and set it to true by default.

    3) On your character damages logic (the conditions / events where he takes damages) add the boolean condition, so by default he can take damages.

    4) On collision with the power up, set the boolean to false, and start a time "onShieldOff".

    5) Create a new condition "On timer" with the tag "onShieldOff", and add an action for the character where you set back the boolean to his original value.

    Maybe I missed something but you have the idea !

    (You should post this to the "How do I... ?" forum <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Hi, you should store the coins value with webstorage (https://www.scirra.com/manual/120/webstorage) then at the start of your game just call the value.

  • Pin behavior what you are looking for, even if you can't access directly the childls, but you can for example store the childs UID into some parent's variables and then access it easily.

  • I'm using a listener, the sound is well positionned... And I was missing the Audio Properties, thanks manual, I'm lost without you !

    Ty all !

  • If you just want volume, set the volume to some multiple of the distance every tick (like 0.2*distance), but I assume you would want panning, too. In the audio section don't just play sound but choose the "play sound at position" option. Then you can set the epicenter, the rolloff, everything. It will also pan left/right relative to whatever you set. I typically do just the center of the screen, but you can do it relative to your player, for instance, if you want.

    Thanks for your answer, I tried the play sound at position, but I don't get it to work. The sound have the same volume, and there is no pan left/right. I'll try to make an example capx soon.

Joskin's avatar

Joskin

Member since 26 Jul, 2012

None one is following Joskin yet!

Connect with Joskin

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies