[Side Scroller] Help with Slopes

For questions about using Classic.

Post » Mon Feb 21, 2011 9:52 pm

Hello!

I am trying to make my Player sprite always rotate to the same angle as the ground it is in contact with. Is there anyway I can do this??
I have already made a slope, but the slope object is a separate object to my normal ground object.

here is my .cap file: [url:388n57eh]http://www.mediafire.com/?0pm804urt9jk2[/url:388n57eh]

Thanks,

Daedalus
B
2
G
1
Posts: 27
Reputation: 504

Post » Tue Feb 22, 2011 3:32 am

If the correct one was BlueBeanAdventure, set angle to (Under BlueBean's Platform tab) angle of motion. You also do not need the Always condition. I must warn you that it's not perfect. You'll have to add an event or two to make him face the proper way when aren't on the slope.

You'll see what I mean if you jump straight up or just barely slip off the edge and he'll still be turned. He also occasionally flips when he first lands on the slope.

As a side note, the platform engine should handle animations. You don't need to event them yourself. For some reason, he respawns on his side for me and moving from his side makes him fall through the ground. I don't actually see a reason for it though.
B
2
G
1
Posts: 22
Reputation: 494

Post » Tue Feb 22, 2011 9:07 am

Hey, I couldn't find anything to do with the Angle Of Motion, I looked on the Platform Behavior on the BlueBean Player but I couldn't find anything :-/
B
2
G
1
Posts: 27
Reputation: 504

Post » Tue Feb 22, 2011 4:19 pm

I am still having trouble with this if anyone else has a solution? :-/ I still cant find the 'Angle of Motion' option on Construct either
B
2
G
1
Posts: 27
Reputation: 504

Post » Tue Feb 22, 2011 6:30 pm

It's when you're eventing. Edit your 30 degree turn. When you're on the screen to input a number, double click BlueBean on the very bottom, then click the Platform tab and you should see it. If you're still having trouble, I'll add pictures next time to help you out.
B
2
G
1
Posts: 22
Reputation: 494

Post » Tue Feb 22, 2011 7:10 pm

Ah, Thanks! I'll try that right now =)
B
2
G
1
Posts: 27
Reputation: 504

Post » Tue Feb 22, 2011 7:30 pm

I think i've done what you said, but it doesn't exactly work d'you think you could upload some pictures? That would be great if you could ;)
B
2
G
1
Posts: 27
Reputation: 504

Post » Tue Feb 22, 2011 7:46 pm

It doesn't work perfectly. Like I said you may need to add some events or something. The main problem is the mysterious landing on his side. Cause him to flip, literally.

Anyway, here's the pic when editing the angle changing you already have: http://i79.photobucket.com/albums/j138/ ... titled.png
B
2
G
1
Posts: 22
Reputation: 494

Post » Tue Feb 22, 2011 7:59 pm

Ok I tried that but it still doesn't work :-/
Have you tried it with the .cap I put in the link?
B
2
G
1
Posts: 27
Reputation: 504

Post » Tue Feb 22, 2011 8:35 pm

That's what I used in the picture. Have you deleted the animation events? You don't need those since the engine handles that for you. You may also need to delete the Always condition from the angle event.
B
2
G
1
Posts: 22
Reputation: 494

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests