How do I have multiple movement types in one game?

Just started using Construct 2? Post your questions here

Post » Sun May 18, 2014 6:13 am

I want to change the way my character moves within a "game" I'm making. I can set it up to have the player's direction to follow the mouse. I can also make it so the player follows a different object. I want to be able to switch through these two (and possibly more), movement schemes in the same game with a button press. Thing is, I need to have them both run at tick speed. I can't figure out how to do this.

I basically need a variable that triggers different controls by using the space key.

Would I do that with a function, and if so how?

I messed with the #'s just to see if it'd help. This starts by following the mouse, then on a planet object after pressing space and then it gets stuck on that.

Thanks,

GnarlFox
You do not have the required permissions to view the files attached to this post.
B
20
S
12
G
4
Posts: 3
Reputation: 3,818

Post » Sun May 18, 2014 6:19 am

I know I'm using the space bar twice and it might get in an infinite loop or something, but I don't know what to do to fix it.
B
20
S
12
G
4
Posts: 3
Reputation: 3,818

Post » Sun May 18, 2014 6:40 am

Nevermind, I figured it out.
You do not have the required permissions to view the files attached to this post.
B
20
S
12
G
4
Posts: 3
Reputation: 3,818


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests