How do I stop a player from running through solid objects ..

Get help using Construct 2

Post » Wed Aug 06, 2014 12:54 pm

Hello everyone,
before i try to explain my issue (not really an issue i'm just getting started lol ) i'd want to say that i'm really glad to join this community of indie game devs , looking forward to master this tool and start making games like crazy!

So my probelm is :
I'm creating a simple 2d rpg style game (pokemon style) , first problem :

1 - How do is stop the player from running through solid objects ?
Issue preview : http://screencast.com/t/RlRY93koB

2 - How to make the player move in 4 directions only : up , down , right ,left
Issue preview : http://screencast.com/t/G6kydsFtACs


Looking forward to any help or a guide to the right direction!
B
3
Posts: 2
Reputation: 175

Post » Wed Aug 06, 2014 1:02 pm

For issue number 1, you have the player on a different layer than the rest of the sprites. Try placing them into the same layer (layer 0 for example).

For issue number 2, you can always use the 8-direction movement and in its properties, there is a choice to make it only 4 directions.
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Wed Aug 06, 2014 1:03 pm

On the properties dialog under 8 direction behavior, you can set it to 4 directions.

Try making the player solid too.
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,293

Post » Wed Aug 06, 2014 1:16 pm

Very awesome you guys , thanks so much!

Another question while you guys around :D

How do i prevent the player from rotating , is there any kind of guide on this ?
B
3
Posts: 2
Reputation: 175


Return to How do I....?

Who is online

Users browsing this forum: draiza and 6 guests