Everything acts like its on 'Every Tick'

0 favourites
  • 11 posts
From the Asset Store
75 power-up sound effects; bonus and notification sounds, fanfares, harp glissandi, stabs, clock ticks, etc.
  • Everything acts like its on every tick

    Its super annoying

    help me

  • Please post some screenshots here for more clues :)

  • Looking at it, I'm actually not sure if it's doing that because of every tick, but a lot of things have been acting this way like the music repeating the first second over and over again when I only pressed the right arrow once

    (It goes from pikmin to save instead of pikmin to act)

  • The image is not showing up

  • There we go

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No idea what you are trying to do here but just from looking at the image, the following advice might help.

    Put stuff as subevents and use (system) else. Right click the green arrow on the left side of event sheet trigger event and add blank subevent. Do it twice or more. Then moven stuff there.

    Keyboard on right arrow pressed

    - if Pikmin frame = 1 ... then set Pikmin frame to 0, Act frame to 1

    - else if Act frame = 1 ... then set Act frame to 0, Item frame to 1

    - else if Item frame = 1 ... then set Item frame to 0, Mercy frame to 1

  • Events are compared every tick in order from top to bottom.

    Your first event, if true, sets Act frame to 1 and it is enough to trigger the second event..

    So in the same tick it is triggering more than one event.

    I would suggest creating a main event: ON -> Pressed and compare the sprites animation frame as secondary events using else. This way it will only trigger one condition per tick.

  • Undertale fan game I suspect?

    Anyway. When arrow is pressed I would set every animation to 0 except the one it is moved to.

  • >

    Events are compared every tick in order from top to bottom.

    Your first event, if true, sets Act frame to 1 and it is enough to trigger the second event..

    So in the same tick it is triggering more than one event.

    I would suggest creating a main event: ON -> Pressed and compare the sprites animation frame as secondary events using else. This way it will only trigger one condition per tick.

    Thank you so much! I decided to make all the buttons one sprite and have the button press trigger the next frame/previous frame and that decides what action is used

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