How do I make directional blocks?

Get help using Construct 2

Post » Fri May 22, 2015 5:52 am

I'm looking to make it so when you hit certain blocks it changes your direction. How could I go about doing this?
B
3
Posts: 3
Reputation: 181

Post » Fri May 22, 2015 6:03 am

You mean your character on the screen? A car? You will need to be a bit more specific i'm afraid.
If it is a character, do you use 8-directions control or platformer? Or is it just an object that is animated to automatically move by setting coordinate increments?
B
54
S
7
G
8
Posts: 150
Reputation: 5,817

Post » Fri May 22, 2015 7:15 am

It's a runner my character goes right, but if I land on a certain block I want it to change my direction to make him go left. So if he lands on the first 2 blocks after he lands a jump it causes him to move left and fall off the ledge and die.
B
3
Posts: 3
Reputation: 181

Post » Fri May 22, 2015 10:55 am

The idea is that you create a Global Variable and basicly let the movement switch when the variable changes. And when you touch the block it switches the variable..
B
54
S
7
G
8
Posts: 150
Reputation: 5,817

Post » Fri May 22, 2015 1:16 pm

B
54
S
7
G
8
Posts: 150
Reputation: 5,817

Post » Sat May 23, 2015 3:42 am

That's perfect! Only a small thing though, the block when you collide into them lets your character go half way into them.
B
3
Posts: 3
Reputation: 181

Post » Sat May 23, 2015 6:02 am

I noticed that too. I thought it had to do with the image point or origin of the image but when i tried that it didn't help. Perhaps try 'overlap at an offset' instead of 'on collision'? I don't know really.
B
54
S
7
G
8
Posts: 150
Reputation: 5,817


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, HellMax, tarek2 and 9 guests