Ride height

OK i am making a car game simillar to Coustom Rides and creat a ride.

So far we got everthing exept ride heigt no i did this code i dont think it works good.

Just starnge code to me;(

onClipEvent (load) {
    speed = 2;
}
on (press) {
    speed  = 2;
    _root.car. _y -= speed;
    if (_root.car._y < 250) {
    } else {
        speed = 0;
    }
}

Thats it there its on my up arrow key just that it works fine but when i make a down arrow key same thing but with a += speed
and it just messes up.

Could you help me.

Make as much as easy possablites possable even hard ones.

I want to see what one is more accurate.

Bulldog: No offense, but is English your first language? I can’t read anything that you type. What the heck is this supposed to mean?

Make as much as easy possablites possable even hard ones.

If english is not your first language then I understand, but if it is then please, take your time, use punctuation and slowly explain what you need help with because I don’t understand what you want and I read your post 4 times.


onClipEvent (load) {
    speed = 2;
}
on (press) {
    speed  = 2;
    _root.car._y -= speed;
    if (_root.car._y < 250) {
    } else {
        speed = 0;
    }
}

you had an extra space in there

but aside from that it’s hard to know exactly what you’re trying to do without an example file or a better explanation

hope this helps =)