8direction and gravity

Get help using Construct 2

Post » Thu Mar 07, 2013 1:28 am

Hi there! I've a problem. I've a sprite with physics and 8direction behaviors. It have X world gravity but when it simulate 8 direction left and right the gravity is ignored. How can I get the gravity on 8direction movement? Thanks.
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Thu Mar 07, 2013 2:07 am

Yep , that's behaviors conflicting ... You can't use the gravity behavior with the 8-direction behavior , use platform behavior or code your way around ...

B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Thu Mar 07, 2013 1:44 pm

But with platform behavior I can't move my sprite up and down!
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Thu Mar 07, 2013 2:33 pm

Oh that , you can toggle each behavior at your ease , for example , if you want to have gravity , enable the platform behavior and disable the 8-directions and if you want to climb up just disable the platform behavior and enable 8-direction ...

Cheers...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Thu Mar 07, 2013 5:46 pm

Ok thanks.
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Thu Mar 07, 2013 6:38 pm

Yeah, 8-direction is intended for games with a top-down view, or possibly side-scrolling aircraft shooters. If you're not making that type of game you should be using something else, like platform.
B
6
S
1
Posts: 67
Reputation: 986


Return to How do I....?

Who is online

Users browsing this forum: flemmig, MisterAqua, Yahoo [Bot] and 33 guests