Change color of blocks under the player

0 favourites
  • 5 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • Hello!

    New question. I'm trying to make something like a bridge made of blocks (cloned from one object) and I want to change their animation or frame when he's on them and go back to normal when he steps away. I managed to make the effect I want but I don't know how to deactivate in one block only :S

    How could I make blocks to turn on and off independently?

    Thank you in advance!

  • Hi. How did you change the animation/frame to get the effect?

    The first thing that comes to my mind is a simple "on collision" when the player is on the object and an inverted event for setting it back to normal. Or "Is overlapping at offset" (which would be a few pixels above) could work. But I never used this event so I cant tell if this will work for sure.

  • I solved it easily. I was making a silly mistake. Just in case someone find it useful:

  • The URL was removed.

    How did you fix it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Easy =)

    Conditions:

    System: For each BLOCK

    Player: is overlapping BLOCK at offset 0,1

    Action:

    BLOCK: Set Animation Frame to 1

    BLOCK: Set Solid on (this allows the character to step over the blocks, but if there's an enemy following you, he'll fall)

    Now, to recover the state of a single block, it's just the same:

    Conditions:

    System: For each BLOCK

    Player: is overlapping BLOCK at offset 0,1 (INVERT)

    Action:

    BLOCK: Set Animation Frame to 0

    BLOCK: Set Solid off

    Now I'm trying to do the same with a full animation. I'll be back

    EDIT: Done!

    If you want to use animation looping. First of all, of course, make the animation and set it on loop. Then, just change the action "animation frame" for "Start animation from beginning" in the NOT overlapping action line.

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