![]() |
Problem With A Car Script
Basically iv made a car script and it works good but there's one problem.
When accelerating it looks non normal and goes from 0 - top speed instantly. I am clueless on how i would actually do acceleration. Ff anyone has any ideas they'd be much appreciated. |
basically have a counter:
PHP Code:
PHP Code:
|
ah ok i get the jist of this.
what its doing on a timer its slowly incrementing the speed. if the keys arent being held down it slowly reduces until its nothing. also its just using arrow keys btw not f lol. thanks man. youv'e given me a new approach on this. :) |
im not near my pc but i think iv'e found another problem.
how the speed will work is confusing... i know how to make my self go faster but the on wall check im not so sure about. maybe somthing like this. PHP Code:
|
I would check with keydown from 1-4. Since your car script is kind of it´s own movement, I´d take a look at this one
Dusty´s Bare Bone Movement. The math might be complicated for the walls check. |
you can do a check.
if (keydown(1)) |
Quote:
|
Quote:
|
I made a car script but the car pic dosent rotate (car rotates) just the gani dosent help D:
|
Correction: You didnt make it, Astram did.
Dont claim scripts as your own unless you scripted the full script. |
just god damn help!
|
Quote:
|
Quote:
|
All times are GMT +2. The time now is 11:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.