How do I make objects fall?

Get help using Construct 2

Post » Wed Oct 14, 2015 11:12 am

Hi
So at the moment i have this unicyle the i need to be able to fall over left and right. The idea of the game it to keep it upright whilst going over bumps/hills. Any idea how to make it fall as it is just upright at the moment (i have physics on) and also how to make it change angle when i press left or right key, thanks a lot. ( im new to this so just learning :)
B
5
S
1
Posts: 37
Reputation: 463

Post » Wed Oct 14, 2015 5:45 pm

you should make the bicycle out of multiple objects, two wheels(give them the physics behaviour) and connect them to the body with physics joints(the body doesn't have to be a physics object). This should make the motion out of the box. Just apply forces to move the vehicle. I believe you can achieve rotation by modifying the angle of the body, but I'm not sure about this, though...
Banned User
B
6
S
3
Posts: 105
Reputation: 1,170

Post » Thu Oct 15, 2015 11:32 am

If you want to use the physics-behaviour, you should make the unicycle out of multiple objects..
Seperate the wheel from the top (Use Circle for collision mask of the wheel) , create a joint with the seat..
when pressing left or right set the angle of the seat and add a torque to the wheel if wanted..
Compare the angle of the seat and if it's too big, add an action to make it fall (very much a matter of your choice how to do this)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Oct 15, 2015 12:42 pm

Thanks for your feedback LittleStain, Everything is going great. All im not sure is about the joint, some help about joints would be awesome.
Thanks and sorry for posting twice, i wasnt aware of bumping posts.
B
5
S
1
Posts: 37
Reputation: 463

Post » Thu Oct 15, 2015 12:56 pm

Revilo wrote:Thanks for your feedback LittleStain, Everything is going great. All im not sure is about the joint, some help about joints would be awesome.
Thanks and sorry for posting twice, i wasnt aware of bumping posts.


"Some help about joints" isn't very clear..
What is the question you have about joints?

Did you read The manual about Physics?

There are also two links in the manual to tutorials:

Physics in Construct 2: The basics
Physics in Construct 2: Forces, impulses, torque and joints
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: farsen, Kyu and 43 guests