[RESOLVED] All Platforms scaling at same time

  • Hi,

    This is my first attempt with Construct2, but I'm stucked :(

    I need your help god community!

    GAMEPLAY MECHANIC

    take a look at this demo first

    DEMO_y&H

    CONTROL

    MOVE: left/right

    JUMP: up

    GROW:'S'

    SHRINK:'A'

    HOW IT WORKS

    • I use 2 globals (PG_hor and PS_hor)
    • I the 'S' on keyboard is down and the character is on floor, then the global is set to 1
    • If the 'S' is released, global to 0

    PROBLEM

    All the platforms are influenced at the same time, that's not what I want. I want that only the plarform on which the character is on is influencable. <font color="blue">I need a solution that detects on which platform the character is on.</font>

    Probably that the global doesn't help here because it overides all the other events. So how can I achieve this?

    THE FILE

    Construct2 - code platform global prob

    INVESTIGATE (stuff I try but doesn't work)

    -Pick index object

    -use local variable instead of global

    Thx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When the character is on a platform it's slightly overlapping it, so...

    System: PG_Hor = 1

    Player: Is overlapping PL_horizontal

       PL_horizontal: Set width to self.Width-4

  • It's simple and functional

    Exactly what I was searching for.

    THX

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