How do I spawn at a particular frame of a sprite?

0 favourites
  • 8 posts
From the Asset Store
three fully animated characters ideal for your RPG side scroller projects
  • For my project I want to spawn 1 arrow when the bow is playing at frame number 5 (Total 7 frames).

    The conditions in Construct does not have any such option.

    Obviously if I give the condition as:|Bow Animation frame=5|, it will spawn 3 or 4 arrows.

    (there's no condition such as: ->On bow animation start of frame 5)

    How to solve this?

    This is probably a beginners question...

    (Lol I thought I was an intermediate)

  • Bow animation frame = 5 with trigger once condition : spawn arrow

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh!! Oh! Thankyou!! Thankyou Thankyou!! I had completely forgotten about that!! Thanks!

    I see the problem with me is that I keep forgetting..

    I shouldn't have forgotten that..

  • Sorry to bother you again, I thought it should work...

    But the problem is that I am using many instances of bow..And I think as many of their frame timings are matching most of them are not spawning the arrow?

  • It would probably be better to use a Timer since frames can be skipped.

  • It would probably be better to use a Timer since frames can be skipped.

    Okay.. I understand now.

    I had never thought of using timber. Good idea..

    I will try again when I'm at home.

    Thanks newt!

    However what is the reason behind this? Is it because of skipping of frames as you mentioned?

    Or is it because of the reason I mentioned earlier? I have lot to learn.. I don't understand many things..

    (Not understanding makes me feel like there are hundreds of paths and i have to test each of them until I get the correct one)

  • As you know things can make a computer slow down occasionally. To counteract this game engines have a choice of either slowing the game down, or skip steps, or frames.

    Most, including Construct choose the second one.

  • As you know things can make a computer slow down occasionally. To counteract this game engines have a choice of either slowing the game down, or skip steps, or frames.

    Most, including Construct choose the second one.

    Okay.. Thanks newt. :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)