How do I make my platform rolling system work?

Just started using Construct 2? Post your questions here

Post » Sat Dec 12, 2015 5:16 pm

So yeah, I'm trying to make a system that causes my princess to roll down when on a slope... Rolling works fine, it continues and hits the wall and stops. This is what I want it to do. However for some reason I am able to move and press my arrow to the opposite direction and the sprite stops moving for the duration, I also can jump, which should not be able to happen. I think something on the ladder (petra) code breaks this, but I have no idea what it is.
I've been trying to figure out the problem for a bunch of hours and I think I'm just going to ask for help again, I'm sure its something simple, I just can't see it.

So, uh yeah? Please help me out if you know whats wrong. heh
Here is the .capx file
Code: Select all
https://drive.google.com/file/d/0Bw7sth_-pQTXTFRtMTgtd2MxZFE/view?usp=sharing
B
10
S
2
G
1
Posts: 51
Reputation: 848

Post » Sat Dec 12, 2015 7:22 pm

The problem is, if you use 'Start ignoring Platform input' 'simulate platform controll' will also not work.
Does the whole rolling not work if you disable the event in the ladder group was that this event started again the Platform input that you stopped again it in the rolling-conditions. So it switched back and forth. I set instead the jumping and deceleration to zero. Maybe there is a better solution but it works.
https://drive.google.com/file/d/0B5FlDY ... sp=sharing
B
24
S
3
G
1
Posts: 454
Reputation: 2,171

Post » Sat Dec 12, 2015 11:58 pm

Thank you, if this is as close as a solution I can get to, I will take it!
B
10
S
2
G
1
Posts: 51
Reputation: 848

Post » Sun Dec 13, 2015 7:40 pm

You've set left/right pressed > rolling=0 but you can't press left/right because you've disabled player input so it just continues to roll until it collides with something.

This just needs a lot of tidying up imo, in the way that there are a lot of events enabling and disabling this platform behaviour and sometimes disabling player movement and acceleration. Can you not put this into one line somewhere, when 'rolling', disable platform input?

You could also group the player movements even further and have separate groups for rolling, walk, run, and any future player stuff so you can easily determine where something breaks.
B
47
S
17
G
81
Posts: 2,221
Reputation: 48,089

Post » Mon Dec 14, 2015 5:40 pm

plinkie wrote:You've set left/right pressed > rolling=0 but you can't press left/right because you've disabled player input so it just continues to roll until it collides with something.


That's exactly whats supposed to happen.

Either way I cleaned up the code a lot earlier and its working fine now. So yeah. I still have to add in combat, movements, but I don't think its going to be too difficult at this point. After that my platform engine is completed.
B
10
S
2
G
1
Posts: 51
Reputation: 848


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests