[RESOLVED] All Platforms scaling at same time

Get help using Construct 2

Post » Sat Jun 16, 2012 12:01 am

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. I need a solution that detects on which platform the character is on.

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

ThxDirtyArts2012-07-02 04:54:31
Create HTML5 games
B
9
S
1
Posts: 29
Reputation: 1,323

Post » Sat Jun 16, 2012 12:32 am

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
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Sat Jun 16, 2012 7:25 am

It's simple and functional
Exactly what I was searching for.

THX
Create HTML5 games
B
9
S
1
Posts: 29
Reputation: 1,323


Return to How do I....?

Who is online

Users browsing this forum: Callan S and 18 guests