What can move a platform sprite?

Get help using Construct 2

Post » Wed Mar 26, 2014 2:16 am

I asked this about a week ago but received no reply so I thought I'd ask it again. What can move a platform sprite? I'm making a sprite that looks like a gust of wind and I want it to push the platform sprite but the only way I was able to accomplish that was by making a transparent solid sprite with the sine property to push the sprite but now the platform sprite can jump on top of transparent object. So my question is what can also move or push a platform sprite?
B
37
S
14
G
3
Posts: 263
Reputation: 4,270

Post » Wed Mar 26, 2014 8:05 am

I think only solid can move a platform sprite, however, you could still move it around with the "Move at angle" action:

Angle : the angle in degrees
Distance : Speed*dt ; where speed is the speed in pixels by seconds

or if you want to move it with X and Y speeds:

Angle : Angle(0, 0, Speed_X, Speed_Y)
Distance : sqrt(Speed_X*Speed_X+Speed_Y*Speed_Y)*dt ; where Speed_X and Speed_Y are the speeds in pixels by seconds
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Mar 26, 2014 9:16 am

Would it work to use if the platform-sprite is overlapping the transparent sprite (I would take away the solid behaviour) platform - set vector x?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Mar 26, 2014 8:15 pm

Aphrodite, how do I get a gradual movement? Move at angle is sending him yes but I want it to look likes hes being pushed back not just being teleported around.
B
37
S
14
G
3
Posts: 263
Reputation: 4,270

Post » Wed Mar 26, 2014 11:35 pm

How come when I say: On collision with spr_wind => Simulate control right, doesn't work?
B
37
S
14
G
3
Posts: 263
Reputation: 4,270

Post » Wed Mar 26, 2014 11:35 pm

Is it because the sprite is falling while he is colliding with the wind?
B
37
S
14
G
3
Posts: 263
Reputation: 4,270


Return to How do I....?

Who is online

Users browsing this forum: richardfu and 40 guests