How do I Make A Sprite Break Away Gracefully Without Physics

Get help using Construct 2

Post » Thu Mar 24, 2016 6:15 pm

Hi peeps,

Im making a sandbox game and i wante to know how i can make the blocks break away from eachother in a graceful fashion and fall to the ground in a realistic way without physics?

I can not use the physics in this project since making the ground out of physic tiles will eat up performance for me.
Can i fake this style of item gravity?
B
9
S
5
Posts: 126
Reputation: 1,295

Post » Thu Mar 24, 2016 7:28 pm

Draw it out with sprite animations.

Or if you have to have sperate objects use bullet behavior with gravity and some random variations on initial speed and angle.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Mar 24, 2016 7:54 pm

@oosyrag The Bullet behaviour does not do what i need it to do, Instead of hitting and landing on the ground it passes through my ground but when i do stop it, It does not look as natural as im trying to imitate.

The only thing i seen that makes it happen is physic and i am trying to avoid it since i cant use it.

I do like the bullet but is it possible to stop the bullet in a way that looks good and not forced.
B
9
S
5
Posts: 126
Reputation: 1,295

Post » Thu Mar 24, 2016 8:02 pm

can you show an example how it should look (video or capx with physics?)

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Thu Mar 24, 2016 8:03 pm

TheNewGuy wrote:@oosyrag The Bullet behaviour does not do what i need it to do, Instead of hitting and landing on the ground it passes through my ground but when i do stop it, It does not look as natural as im trying to imitate.

The only thing i seen that makes it happen is physic and i am trying to avoid it since i cant use it.

I do like the bullet but is it possible to stop the bullet in a way that looks good and not forced.


Try adding an event that would disable the bullet behavior when the pieces are overlapping the ground or wherever you want them to stop
ImageImageImage
B
39
S
22
G
11
Posts: 492
Reputation: 9,925

Post » Thu Mar 24, 2016 8:07 pm

@fm4fanAT https://youtu.be/YOkXsM7N0OY?t=30

, How can i make my tiles fall like this without the use of physics?

I have been looking for different ways to get that same effect without but it all leads back down the road of what im trying to avoid.

it seems like the tiles that are broken away have force and gravity, but how? Having that much physic sprites on screen would cause major framerate issues for me using construct 2.
B
9
S
5
Posts: 126
Reputation: 1,295

Post » Thu Mar 24, 2016 8:55 pm

https://www.dropbox.com/s/6cliwidu8f51p ... .capx?dl=0

Your ground should be set to solid.

Edit: Saw your example video after. My bullets bounce, but you can turn bounce off and set their speed to 0 on collision instead, as taylor suggested. Or have them bounce only once by using a counter and using an action to turn off the bounce behavior.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Mar 24, 2016 9:20 pm

@oosyrag Thats awesome! i cant say anything bad about it because it does exactly what it is supposed to do. Thank you for showing me one way to reach this goal.

I tried numerous things but was getting nothing but framerate issues. Thanks for this example friend.
B
9
S
5
Posts: 126
Reputation: 1,295


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, MPPlantOfficial, Sup with that? and 60 guests