8 direction and custom control issue.

Get help using Construct 2

Post » Fri Oct 05, 2012 10:15 am

Hello!
I've a problem with tweaking the controls to my needs.
What I want is a sprite moving in 8 directions but going over solid objects in the same time.
Now 8 direction behaviour works just great for the controls but the sprite collides with solid.
Custom control doesn't collide, but I can't make a smooth movement like in 8 direction. I can't set any deceleration.

So I don't know which way to go and what's possible.

Should I try and make a sprite go over solid with 8 direction behaviour.
Or should I figure out how to simulate deceleration for custom control because it hasn't got that option.

I'm trying to make a ghost game where the ghost is able to pass through solid, and I need to keep it solid for other stuff.

If anyone 's got an idea on how to solve this, I would be thankful for your time and help!

Regards,
matcon!
B
2
Posts: 4
Reputation: 308

Post » Fri Oct 05, 2012 11:26 am

Try "On offset with object" set solid disabled, and then after "on offset with object" inverted, set solid again.
Image
B
71
S
22
G
2
Posts: 671
Reputation: 8,522

Post » Fri Oct 05, 2012 11:34 am

Or you could use on Collision instead.
Image
B
71
S
22
G
2
Posts: 671
Reputation: 8,522

Post » Fri Oct 05, 2012 12:04 pm

Thank you for your time.
That's what I was kinda trying as well but when I set Solid to disabled, all the other objects start falling through as well (NPCs, boxes).
B
2
Posts: 4
Reputation: 308

Post » Fri Oct 05, 2012 5:38 pm

The ghost is the player?
Image
B
71
S
22
G
2
Posts: 671
Reputation: 8,522

Post » Fri Oct 05, 2012 8:08 pm

Yes. Any ideas? I can't make him move smoothly with custom control 'cause there's no deceleration. Using custom control makes my ghost sprite not collide with anything. On the other hand, if I use 8 Direction, Ghost collides with Solid.
B
2
Posts: 4
Reputation: 308

Post » Sat Oct 06, 2012 7:53 pm

try this
B
12
S
2
G
2
Posts: 96
Reputation: 1,583

Post » Sun Jul 14, 2013 3:03 am

Thanks.
B
19
S
10
G
7
Posts: 109
Reputation: 5,591


Return to How do I....?

Who is online

Users browsing this forum: cotteux, Skebab, spcsmrf and 18 guests