ThomasOlsson's Recent Forum Activity

  • Thank you for the quick answer !

    Looks like a good way that I should try. I will, and then repost feedback.

  • Hi guys,

    First of all I hope this is not a typically posted issue. I could not find what I am looking for.

    So here is my trouble : I'm trying to do a Beat Em Up style game with hand fights.

    My problem is that the enemy is doing several actions at the same time. For example he can

    attack even if he is supposed to play the "hurted" animation.

    I tried to solve it by using local variables like "If action = 0 Enemy can attack, and when action = 1

    he cannot because he is playing the hurted animation." and all with little timers but still it is doing

    everything at the same time and it looks gross.

    I think I must have missed something but I'm just running out of ideas... any suggestions ?

    Sorry if it is not very clear.

    Thanks

  • Hi Abdalghani,

    Did you try to use the "Custom Movement" behavior ?

    You can use it to make go left or right when a key is pressed.

  • Hi theDeletr,

    I don't really know how others would build it up, but I'll try to explain how I usually do.

    Do you want to put ammo limit too ? I will consider that you don't for this simple explanation.

    So you need a variable for this. For example lets use a number variable called "ammo" wich is

    supposed to be the number of bullets in your gun, and that your gun is a classic

    pistol with 15 bullets in a loader. For example :

    IF player press SPACE

    IF "ammo" is greater than 0 Spawn Bullet

    Play sound "GunFire.ogg"

    Add to "ammo" -1

    Else

    IF "ammo" is equal to 0 Hero animation "Reloading"

    Play sound "GunReload.ogg"

    Wait 0.5 seconds

    Set "ammo" to 15.

    This makes your player reload if he press Space and that the loader is empty. The 0.5 wait command is

    the time needed to reload your gun.

    Please tell me if you don't understand what I mean, I think others might have a better way to do it.

  • I'm having this kind of trouble too, I really can't figure out how to solve it... So please guys help us !

  • Talion's Law (Action Beat) — Now for sale in the Scirra Store!

    https://www.scirra.com/store/royalty-free-music/talions-law-action-beat-524

    <p>Talion's Law is a dark song matching with serious fights and revenge.</p><p>Wave track, 127 BPM, 1'45.</p><p>Contact me for track by track export and for loop version.</p><p>Enjoy !</p>

    Use this topic to leave comments, ask questions and talk about Talion's Law (Action Beat)

  • beni92 : Thank you, I did it, and it is quitte better even if I still have trouble.

    : That's actually what I do !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys,

    I'm currently working on a platformer and I'm having trouble : to map, I don't use tilemap system but

    I prefer to build it with independent objects.

    Now I have this issue : sometimes my hero is stopped while running just because of a few Y pixel difference with the next solid floor object. Of course the player can jump over it. But for obvious reasons I don't wan't this to happen and would prefer something more fluid.

    Can you somebody help me ?

    Thanks !

  • Hi guys,

    I'm French and currently living in Kyoto, Japan, and I'm looking for Construct or any

    other soft game design people to share, create together and stuff.

    Just posting in case, thank you !

ThomasOlsson's avatar

ThomasOlsson

Member since 10 Jul, 2014

None one is following ThomasOlsson yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies