Question about image point

This forum is currently in read-only mode.
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • Hi all!

    I'm trying to custom my "ghost shooter" game from the tutorial.

    Instead of repeatly click the mouse button to shoot, i've done this :

    Then I just have to keep the mouse button down to make my character shoot.

    The bullet is supposed to appear to the character image point "canon", but when I press the mouse button, only the first bullet appears to this point.

    The other ones appear on the center of the character sprite instead of its image point "canon".

    Does someone could help me about this?

    Thank you very much.

  • Hi all!

    I'm trying to custom my "ghost shooter" game from the tutorial.

    Instead of repeatly click the mouse button to shoot, i've done this :

    Then I just have to keep the mouse button down to make my character shoot.

    The bullet is supposed to appear to the character image point "canon", but when I press the mouse button, only the first bullet appears to this point.

    The other ones appear on the center of the character sprite instead of its image point "canon".

    Does someone could help me about this?

    Thank you very much.

    My guess is, you've got the "canon" image point set for the first frame of your "shooting" animation, but not for the subsequent frames.

    From the layout editor, double click on your mainCharacter sprite to load it up in the picture editor. You should see all the available frames for this sprite along the bottom there. Cycle through them and check to see if your image points are in the right place on every frame.

  • That was right, thanks a lot!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Um isn't the code a little redundant?

    I mean, you'd get the same results if you said

    Left mouse button is down

    Every 400 Miliseconds

    And make the actions for that the ones for Event 3

    And you wouldn't need a private variable.

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