Thndr's Recent Forum Activity

  • I am doing that now.

    It was the process I was making arrays had everything converted to string which made things wonky as it would Greater/Less than compare strings to numbers, but not Equal compare strings to numbers.

  • I suggest doing the number comparison, so hasfired=+1 when fired 1 bullet, and when the bullet is destroyed it sets hasfired=-1 so it's zero.

    This way you can setup multiple places where the bullet can be destroyed (on enemy hit) and speed up your firing like Megaman (megaman limited you to 3 bullets on screen, but if you were right next to an enemy or the screen edge you could spam bullets. A valuable mechanic for that game)

    If you want a specific delay on the firing rather than if the bullet is onscreen, you can do a timer system in which you can only fire every so often.

  • I would do two things

    1) move the GREEN finished below GREEN playing

    2) Add a wait 0.01 second to the GREEN finished if you keep having issues. Specifically right below the start BLUE animation

  • Thanks. I checked out your version and it works excellent except for the continued looping animation (which I tried to handle using Wait, didn't work out so well).

    Do you know how to make the animation stop once movement has stopped?You can loop animations on the properties bar on the left in the animation editor. Just set LOOPING

    For platformer, you can do On Platform Stop or invert Is Moving

    For 8dir, you can compare speed, or invert Is Moving

  • The issue I have is sometimes the walk-left animation is playing (likely due to a previous "walk left" command) when the character is moving right.

    That's the issue it resolves. I never said any solution about smooth animations, only to properly determine animations via input.

    Basically what it does is specifically limits the sprite from doing the walk-left animation because walk-left is only valid if MIRRORED or BOOLEAN "left" is set to true.

    Edit: realised you're using 8dir, my bad.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The platformer tutorial has a good solution I've been using

    On "A" key down

    Set mirrored

    Simulate Platform Left

    On "D" key down

    set not mirrored

    simulate platform right

    However, if you have separate Left and Right animations, you can replace the Mirrored function with a boolean if they are going left or not, and in your animations differentiate it there.

    Platform Moving

    Set animation running

    Platform moving

    if BOOLEAN

    Set animation left running

    if NOT BOOLEAN

    Set animation right running

    Could also add an "platform on ground" to the moving checks as well if you want to make sure.

  • Containers and Families don't mix reference associated instances.

    Lets say you have 2 objects and 2 families

    If hitbox overlaps Attack

    destroy movebox

    This works as intended with Containers and instancing.

    if hitbox.family overlaps attack

    destroy hitbox.family

    This works as intended, destroying only that one instance.

    if hitbox.family overlaps attack

    destroy movebox.family

    This destroys every movebox.family instance. It should hopefully recognize the associated instances of the family objects.

  • On space pressed >

    >if PlayerIsSwimming <- boolean for if they are swimming

    >> Player | Set Platform Y Vector to swimupvector (make sure it's negative)

    With this, if your player is swimming when you hit space, their Y vector will go up that much.

    Make sure your Y vector is negative if you want to go up. Positive Y vector = down.

  • When the base is created, a turret is created as well. Since they are in a container, referencing the turret right after making the base references the specific turret that base spawned with as containers spawn all parts when only one part is created.

    Another way is doing it On Created of either the Base or the Turret, and pin the turret to the base as it will reference that specific turret and that specific base. This way allows you to have multiple things create the base without having you to add "pin turret" to all the actions that spawn a tank.

  • Oh, well that's useful too. Thanks for the tips

    Although for a UI standpoint I still think it should at least prompt it and everything. But it's a rather minor issue.

  • Yeah, I noticed that but it should be a prompt within the software if you're using a singular file. Since I hit the event limit I re-saved as a folder and am probably going to do this since I'll make a mass of files to transfer over anyway.

  • I was playing around with the AJAX plugin and a thing was bugging me:

    Whenever I needed to update my project file, I had to delete it and then rename/replace it. This caused all events using this file to delete themselves

    There should be a overwrite project file option somewhere.

Thndr's avatar

Thndr

Member since 15 Oct, 2012

None one is following Thndr yet!

Connect with Thndr

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies