Bicycle Game Help

Get help using Construct 2

Post » Wed Nov 13, 2013 4:14 pm

I've started a project that includes bicycles and i have them down to a T working perfectly to how i want, But one probrem (-_-), The tires don't have enough friction so when i press accelerate the back wheel just spins about and the bike slowly moves.

And i don't want no fake ass force pushing the bike from behind i want a properly physicked bicycle please. thankyou :).

P.S: I've already tried messing around with friction and it does nothing :/.

Link:
https://www.dropbox.com/s/l8iusxgo5zv2rr5/Whee%21s.capxwildman10012013-11-13 19:29:04
B
8
S
2
Posts: 51
Reputation: 1,235

Post » Wed Nov 13, 2013 5:05 pm

Just a thought:

Cant you calculate the distance from what the wheel should move ?
(pi * diameter)

based upon that, you have the actual distance from movement without friction.

You could fake your own friction, by simply having it move less then it should :)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Wed Nov 13, 2013 5:14 pm

Thanks for the reply :). I have tinkered with allot of ideas like this but i always seem to get problems with them stuff like:
getting movement in mid air, And movement whilst even upside down with no wheels of the floor :S.
I don't understand what you mean by the second thing.
B
8
S
2
Posts: 51
Reputation: 1,235

Post » Wed Nov 13, 2013 5:17 pm

You could overcome those irratic movement by only having actual movement applied when the wheel is on collision with the ground ;)

As for fake friction:   wheel turning indicates (example calc) 100px movement. If you then move only 90% of that distance, it could equal 10% friction.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Wed Nov 13, 2013 6:31 pm

Isn't the "if on ground" option for the platforming behavior? if so i tried this and the bike spazzed out and flew off the screen because the bike is fully physics lol :S.
And im using things like torque i dunno maybe im coming at it all at the wrong angle maybe i need to start again sigh*.
B
8
S
2
Posts: 51
Reputation: 1,235

Post » Wed Nov 13, 2013 7:05 pm

I tend to make some of my own mechanics here and there.

but I can imagine the physics getting bungled up ... had some goes at that myself already, though, I quickly came to realise that on occassion I want more more functionality from something, and go out of my way making it work ... while there are other solutions (read easier)... lol

anyway, might be worth posting a file or link.

Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Wed Nov 13, 2013 7:29 pm

Okay thanks :) link is at the top mate.
B
8
S
2
Posts: 51
Reputation: 1,235

Post » Wed Nov 13, 2013 8:46 pm

hi there :)

I made some edits .. but;

You might have to reevaluate what you tried up to now.

As it looks, you only applied friction on the back wheel, and probably been looking at your running application, comparing effects with effects from your front wheel.
Not sure if thats the case, but I did in first instance.

It gives a total wrong picture of whats wrong/not working propperly.


So I added friction to the front wheel too, because, as you move forward, pushed by the rear wheel, the front wheel drags itself in circles over the ground, by friction.

Seeing as you are on top (bike > ground), I supose whats below deserves a bit more friction as it carries all the weight.

I believe this results in a more propper mechanic.




capxlennaert2013-11-13 20:48:04
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Wed Nov 13, 2013 9:18 pm

YOU! MY FRIEND! ARE AWESOME! didn't even think of that so simple!
a few more tweaks then i can get onto the proper game with good graphics and what not :) thanks again pal.
B
8
S
2
Posts: 51
Reputation: 1,235

Post » Wed Nov 13, 2013 9:34 pm

your very welcome :D nudge me a link when you got something running (demo/live) and I'll give it another whirl ^_^
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests