juniorasmj's Forum Posts

  • 7 posts
  • Exact! It was my fault. You guys had already explained everything and I was going to the same mistake again.

    So yesterday I had been able to figure out what was wrong and what I could do to fix it. But I just forgot to update the post, sorry!

    Now the action will only happen when the character collides with the enemy, in the way it should be <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" />

    Here's what I did:

    And I had to make some modifications to the "Boss" because it deals 2 damage.

    In this way:

    and here are the timers that were used:

    I believe everything is working the right way now, you can test the game here: juniorasmj.itch.io/ghost-archer-017

    The password remains the same: asmj

    Now the game is playable, the monsters are at the right speeds and are generated from time to time.

    And the commands also remain the same, but now you can restart the game anytime you want.

    WASD (walking)

    Space (leap / tumble)

    F (show and hide FPS)

    J (restart the game)

    Sorry to bother you so often with something so simple, I promise I'll try my best before coming to the forum again :b

    THANK YOU for the help so far, really! You are awesome.

  • tarek2

    Btw , I found a solution, but I only managed using System Wait X seconds, as in the print below:

    Using the timer is not working

  • tarek2

    I'm at this very moment trying to redo the game, but I've encountered a problem.

    I did the same way you did in the example, in regards to the hearts disappearing. But here something is happening that I do not know how to fix.

    Whenever I lose 1 life, the heart (frame = 4) begins the animation of being destroyed, but it keeps repeating itself until I lose 1 more life, so it becomes invisible. And so, the heart (frame = 3) stays the same way, repeating the animation until the next life is subtracted.

    The strange thing is that I put the 'HeartHide' Timer with 2 seconds, and in the On HeartHide Timer I put it to leave the heart invisible, so I'm not really finding the solution.

    Here is a print:

    Sorry for the english and for asking one thing you've already explained :/

    Oh, and by the way, here's the link so you can test the game and understand what I'm talking about: juniorasmj.itch.io/ghost-archer-122

    The password is: asmj

    The controls are: WASD(Walk), Left Click(Shot), Space (Tumble) and F (show and hide the FPS). I put only 1 enemy, but for you to keep losing life, just keep following him with Tumble or something, I left him very slow to be able to test.

  • tarek2

    Thank you very much again!

    I'll read everything you've explained and read the content of the links! This helps a lot!

    After understanding everything, I will redo the game completely, after all, I had not done much until now xD

    And when I finish the game, if you want, I can send a link to the game.

    It's really simple, it's a different version of Ghost Shooter, but with an archer and monsters for him to kill, and I did pretty cool animations of just about everything (at least I think they're cool hahah), actually I'm just doing it to understand how Construct 2 works, to be able to apply what I learned in a more complete and nice game.

  • Thanks for the help! I understood that the functions are important, I think I will redo the whole game, because I went wrong in several parts. Although they are working, everything I've done so far seems super wrong, hahaha

    tarek2

    Thanks again for the answer! You are awesome!

    So, I opened the file you sent, and it's exactly what I want to do! But I did not understand many things, could you explain them to me? I feel like they are SUPER basic stuff, I'll understand if you'd rather not answer me, it's totally okay!

    Seriously, I have MANY questions, and I can see that they are really simple. So it's completely cool if you do not want to answer! For real!

    I'm going to send out a print pointing out the parts I did not understand and explain them right away.

    So here we go:

    1. Ok, I started using Construct 2 a couple weeks ago, but I feel like I should already understand this, it seems VERY simple. So, my question here is: Will the 'on collision with Player' event only start if Life is greater than 0? If not, I can not understand why line 2 is there.

    2. Why is there nothing here? How did you make for line 3 go down that way? I can not understand what this is T_T

    3. You're just checking if the Frame value is the same as Player.Health, right? And if it is, it will perform the actions. But for example, if the value is the same, how do I know which heart it will run the Destroyed animation?

    4. This Else refers to what? I can not understand these events one underneath the other T_T I feel I need to see a basic video of Construct 2, if you can recommend something, I'm listening.

    5. I did not know the Timers until then, but from what I understood, they make a Counter start, right?

    6. This question is related to 5. In the 5. you put to start Timer 'Hide_Heart' (this is a name that was just quoted here, right? Or do you need to create this before as a variable or something?) And you put it to count 1.83 seconds. Ok, so far I understood, if what I said is right.

    Then at 6. you made the Heart (ON Timer 'Hide_Heart') go to Invisible. Does this mean that DURING the 1.83s the heart will become invisible? Or AFTER the 1.83seconds?

    And from what I understood, that line 6 is like a 'function' then? There are actions inside it that will only happen when I start the Timer X

    7. Why exactly is the player's life going to 0 here? I could not understand

    8. And finally, why is this whole part empty? The same happens just below 6.

    And again, english is not my mother language, so, sorry for the mistakes T-T

    Many thanks to you guys!

  • tarek2

    dop2000

    Oh, thank you so much guys! I managed to fix it

    Here is what I've changed:

    Now that I've managed to fix it, another problem has arisen.

    Should I create a different post for it? It has to do with animation as well.

    In any case, I'll explain what the problem is, and in case I need to create another post, I'll do it.

    It turns out that in the game I'm creating, the player can use a sort of leap forward; a tumble.

    Here's how it was programmed:

    In this case, it is a forward jump, where the player will always go to the side he is looking at. (It's a top-down shooter)

    I do not know if there are better and more optimized ways to do this, but if there is another way and you want to share, I really appreciate it.

    So the problem is that if the character dies during the jump, the Death animation is replaced by the Idle animation(or the first frame of Death animation, I'm not sure). And as I've programmed to disable Tumble and PlayerMovement when life reaches 0, the character stands still with that frame goin on.

    Again, if there is any information I can pass to make it easier to get to the solution, just say and I will update the post.

    Anyway, thanks for everyone's help so far!

    And again, english is not my mother tongue (or mother languague, idk), so sorry for the mistakes.

  • Try Construct 3

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

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

    I'm really new to Construct 2, and I have a question about how to stop an animation from continuing to loop.

    I know that if I click on the animation I want and go to the sidebar I can change the Loop option to NO, but that did not solve the problem.

    And when I try to stop the animation by force, using something like 'Set animation frame to', the animation keeps trying to repeat anyway, and a kind of visual bug happens

    Anyway, here is a print showing the part where I change the animation, I hope you can help me.

    I'd like to do just the animation of Death stop looping.

    Although the animations of the heart being destroyed also do not stop repeating, then I resolved leaving them invisible after the animation ends. But if you have any solution for hearts too, I would be grateful!

    And if I forgot any information, please let me know so I can update the post.

    (btw, english is not my mother tongue, so sorry for the mistakes)

  • 7 posts