# Can someone help me?

**URL:** <https://forum.kirupa.com/t/can-someone-help-me/95901>\
**Category:** Uncategorized\
**Created:** [December 2, 2003, 5:46am UTC](https://forum.kirupa.com/t/can-someone-help-me/95901 "2003-12-02T05:46:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdjstudios](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mdjstudios](https://forum.kirupa.com/u/mdjstudios)\
**Post date:** [December 2, 2003, 5:46am UTC](https://forum.kirupa.com/t/can-someone-help-me/95901/1 "2003-12-02T05:46:55Z")

</div>

mm i like cherries! well anyways, for the car component thing in the flash mx game control. is there anyway to have specific borders? like instead of putting the numbers for the borders, can u just put a movie clip and have a instance name for where the car cannot go pass?  
[http://www.kirupa.com/developer/mx/gamecontrols.htm](http://www.kirupa.com/developer/mx/gamecontrols.htm) = car thing is here!

oh and by the way, heres some code and i wanted to know how to make a down button so when u press | , then the car would go backwards. V

onClipEvent(load){  
control\_coche = 0  
colision = 0  
velocidad = 8  
}  
onClipEvent(enterFrame){  
if (Key.isDown(Key.ENTER) && !lock){  
control\_coche = 1  
\_root.empezar.\_visible=0  
}

if( control\_coche == 1){  
if (Key.isDown(49)) { velocidad = 1; \_root.velocidad.gotoAndStop(1)}  
if (Key.isDown(50)) { velocidad = 1.5; \_root.velocidad.gotoAndStop(2)}  
if (Key.isDown(51)) { velocidad = 2; \_root.velocidad.gotoAndStop(3)}  
if (Key.isDown(Key.UP)) { acelerar = velocidad }  
if (Key.isDown(Key.RIGHT)) { \_rotation += 5 }  
if (Key.isDown(Key.LEFT)) { \_rotation -= 5 }  
\_y += acelerar \* Math.sin(\_rotation/57.3)  
\_x += acelerar \* Math.cos(\_rotation/57.3)  
acelerar \*= 0.8  
}  
//checar si se gana  
if (this.hitTest(\_root.premeta)) {  
preparar\_ganar = 1  
}  
if (this.hitTest(\_root.meta) and preparar\_ganar == 1) {  
\_root.ganar.\_visible = 1  
\_root.otravez.\_visible = 1  
for (i=1 ; i\<=6; i++ ) {  
set ("/" add Number (i) add “:control\_coche”, 0)  
}  
}

if( colision == 0){  
//colision contra coches  
for(i=1; i\<=6; i++){  
if (this.hitTest("/“add Number(i)) and \_name \<\> i ){  
this.gotoAndPlay(2)  
colision = 1  
control\_coche = 0  
\_root.otravez.\_visible = 1  
\_root.perder.\_visible = 1  
lock = true  
}  
}  
//colision contra paredes  
for(i=1 ; i\<=7; i++){  
if (this.hitTest(”/pared"add Number(i))){  
this.gotoAndPlay(2)  
control\_coche = 0  
colision = 1  
\_root.otravez.\_visible = 1  
\_root.perder.\_visible = 1  
lock = true  
}  
}  
}  
}
