Physics - Limit Spin so Obj Slides

Get help using Construct 2

Post » Sat Apr 07, 2012 5:11 am

OK,

Here is a demo flash movie of the gameplay so you can get an idea:
http://kinglith.deviantart.com/art/Luna-Demo-Flash-40777156

I am making a side scrolling game that uses hand draw backgrounds (drawn by me) with invisible boxes for the floor that have physics applied. There smooth sloping inclines. The invisible boxes are set to immovable. The floor does not vary that much in angle and the angles are slight.

I have a beetle type enemy that I need to 'slide' (walk back and forth) across the floor but not roll or cartwheel. There are no other objects with physics in the games besides the beetle and the floor. So far everything is working good and the beetle walks great and rotates with the scenery as he walks but every once in a while he "trips" and cartwheels rotating too far (This happens far more often in Firefox for some reason). This would be easily remedied if I could limit the rotation of an obj using physics. I have looked into ragdoll a lot an cant get that to help.

The beetle using the following behaviors:
Custom Movement
Platform (ignores default controls)
physics
solid

This works best I have found... but does not account for the tripping

The only reason I didnt want to share my CAPX is because I have images that took months to draw in there that I am being stash with at this point.



Any ideas?

There are screenshots of my game on kinglith.deviantart.com (Luna)

Thanks.Gillis2012-04-07 05:36:03
Image
B
35
S
13
G
9
Posts: 142
Reputation: 7,340

Post » Sat Apr 07, 2012 9:36 am

I understand you don't wanna share the graphics. Can you replace it with one color boxes, delete all unrelated events, so there's only the beetle and the floor and upload the .capx?
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643


Return to How do I....?

Who is online

Users browsing this forum: amarcelo, anty21ro, Magistross and 23 guests