The player moves automatically

Get help using Construct 2

Post » Wed Jul 15, 2015 1:33 pm

Hello guys, i have a very little question, but i dont know how to solve it.
I want the player when collision with a invisible object, he walk automatically straight, and wait X seconds to fade the layout and go to the next layout, and you can't do anything when this happens, I tryied the bullet behavior and disable the plataform behavior, but you can still move!, is there any solve to this?
(Sorry for my bad english :? )
B
4
Posts: 13
Reputation: 226

Post » Wed Jul 15, 2015 1:37 pm

I guess you are looking for something like this:

Give the player a booelean variable EndOfLevel

player on collision with invisibleobject
> player set boolean endoflevel to true
> player set platform behaviour start ignoring input

player is boolean endoflevel
> player platform simulate pressing right
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 Jul 15, 2015 11:02 pm

LittleStain wrote:I guess you are looking for something like this:

Give the player a booelean variable EndOfLevel

player on collision with invisibleobject
> player set boolean endoflevel to true
> player set platform behaviour start ignoring input

player is boolean endoflevel
> player platform simulate pressing right

Didn't work :c, when the player collision the invisible object, the player just stop and don't move
B
4
Posts: 13
Reputation: 226

Post » Thu Jul 16, 2015 8:30 am

What you could do is to destroy your player sprite and replace it with a low level copy, whose only function is the walking animation. This would look identical but because it's a different object, wouldn't respond to any of the events involving the original.
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 2 guests