How do I make items with physics fall faster

Get help using Construct 2

Post » Mon Dec 22, 2014 2:08 am

I can't seem to make an item with physics fall faster and also is it possible to make it fall faster after a certain amount of play time or after a certain score?
You do not have the required permissions to view the files attached to this post.
Last edited by ethans9999 on Tue Dec 23, 2014 7:13 am, edited 1 time in total.
B
11
S
3
Posts: 25
Reputation: 769

Post » Mon Dec 22, 2014 3:15 am

add gravity? reduce friction?
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Mon Dec 22, 2014 3:24 am

you should look at this manual page on physics it should help you out https://www.scirra.com/manual/98/physics it details what each options do in the physics property
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Mon Dec 22, 2014 5:17 am

To start with, don't let box2d handle gravity:

On start of Layout -> Set physics object World Gravity to 0

Then add everything you want to be affected by gravity into a family and call it "anything".

Everytick -> "anything" Set physics velocity to whatever you like per frame.

You can get fancy and have gravity change strength, angle or both over time. Really, if you manipulate velocity rather than adding forces or impulses you can get very predictable results without compromising the integrity of the physics world. Using this method you can even have a max fall velocity.
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Mon Dec 22, 2014 7:57 pm

@ruskul thanks but i'm having a hard time making the gravity get higher each (x amount of secs) i made a global variable "Difficulty" and i put the initial value at 5 so every 5 secs. but when i made the event "every Difficulty seconds" i can't seem to make to so that it adds gravity to the item. i did "set physics world gravity to" but i can't do an addition/+ to make it go higher if you want i can send you the file.
B
11
S
3
Posts: 25
Reputation: 769

Post » Tue Dec 23, 2014 6:19 am

I would be happy to take a look if you would like. Unfortunately, I can't guarantee how soon I can get to it with the christmas season and all... but if the project is small it will be easy to check it out.
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Tue Dec 23, 2014 7:10 am

@ruskul thanks i don't want to bother you if you don't have time i already found one way to make the game harder by making the "object" spawn faster here is the file anyway

*edit i need more rep to post links so i just added the file to the post
B
11
S
3
Posts: 25
Reputation: 769

Post » Wed Dec 24, 2014 12:31 am

I'll take a look if I get the time on Christmas eve. I'm at work right now so no construct :(
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests

cron