Pushable physics stone

Get help using Construct 2

Post » Sun Nov 24, 2013 3:11 pm

Hey guys,

I want to make a rolling stone you can push about just like Yoshi's story. You can see in this video at the 8 minute and 9:24 marks.

Now I know this should be simple, but I just can't get it going smoothly. I have a few requirements:

- Harder to push uphill, the steeper the slower
- Rolls downhill, the steeper the faster
- Can land on stone and then control it by left/right arrows (character does the old running on a ball trick)
- If moving, it will push back against the player, gradually slowing (depending on speed)
- If moving above a certain speed, will do damage and cannot be pushed

1. How to make it react correctly with the player pushing it? I have tried it so if player is overlapping at offset 10, apply force. Which works okay, but sometimes it moves really jerky, sometimes too fast, and is all-round unreliable and bad looking.

2. I want it to drop very fast when not overlapping the ground, but increasing the gravity also changes the speed at which it roles down slopes, which I don't want. Also it seems you can only change the gravity for all physics and not just 1 object, so having multiple objects with physics on screen doesn't work with changing gravity anyway.

3. To make the player get pushed back, I also added physics to them. However, this means they now also slide down slopes which is not wanted.

4. The character is never smoothly touching the rock while the rock is moving, as it keeps getting knocked about.

Actually there really are many little points of fine-tuning I need to make this work, so if anyone could start me off/lend some examples it would really help! I'm not even sure if I should be using physics at all or just try to event more with platforms or what.
B
28
S
8
G
5
Posts: 429
Reputation: 7,007

Post » Mon Nov 25, 2013 12:37 pm

First question:

Is everything in your game physics?

If yes, using physics on the boulder will work, if no, you should try to fake the physics part with events, because physics doesn't mix well with other behaviours.
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 » Mon Nov 25, 2013 4:41 pm

@LittleStain - yeah I'll take you up on that advice. So far it's just the stone.
B
28
S
8
G
5
Posts: 429
Reputation: 7,007


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests