Solid Behaviour only for Players?

Discussion and feedback on Construct 2

Post » Sun Oct 23, 2011 6:03 pm

thanks Spades, links now working.

Ur solution is a good idea, but it's not working for me, since i dont know on which side of the block to teleport the player.

1. because he can walk side- and backward.
2. the walls are all the same, even if its going horizontal or vertical.
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Mon Oct 24, 2011 5:14 am

It would be really quite handy if the Solid behaviour could be toggled on and off.
B
55
S
12
G
8
Posts: 339
Reputation: 9,314

Post » Mon Oct 24, 2011 6:35 am

You can move him by 180 .. so he will be always sent back?

Cheers
B
17
S
4
G
4
Posts: 94
Reputation: 3,058

Post » Mon Oct 24, 2011 5:34 pm

so it looks this kind of control cannot be emulated by 8 direction, right?

the only (easy) way i see, is a collision check with the walls, before moving to the next desired position.

but thats not very handy, because all movements, even along the wall sideward, will be blocked. also u need temp variables, to store the "old" position.

but isn't there a trick to get the up/down movement of the direction behaviour to act to the current angle?
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Mon Oct 24, 2011 5:38 pm

Maybe the bullet behavior? "WHILE KEY "up arrow" IS PRESSED" set speed to 100 ...

And so on =)
B
17
S
4
G
4
Posts: 94
Reputation: 3,058

Post » Mon Oct 24, 2011 6:26 pm

i just got it working. u need to the reset for every key, since multiple keys can be pressed together.



well, here is an image inserted, but it is not shown in the post by me.


anyway, thanks and have fun xeed2011-10-24 19:16:53
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed Apr 08, 2015 7:43 pm

I know this has been a few years since, but for people who are still trying to do this and are using the WSAD controls and mouse, follow these steps:

1. Add the Solid Behavior to the thing you're trying to stop stuff with (Your border)
2. Add the 8Direction Behavior to your player (I know, I know just wait)
3. Go to your player and in your behavior section (under properties) go to 8Direction and put 0's for Max Speed, Deceleration, and Acceleration

Hope This Works!
B
4
Posts: 3
Reputation: 218

Post » Fri Apr 10, 2015 10:18 pm

use custom movement. works best for me. also there is push out from solid (nearest) which moves your thing away when it hits solid.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
29
S
10
G
11
Posts: 601
Reputation: 8,261

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 20 guests