View Full Version : i need quick help plz
mayjarboi
February 9th, 2006, 05:02 AM
how do i make my background scroll left a certain amount lets say 200px when i press left, like in a beat em up game
bombsledder
February 9th, 2006, 06:28 AM
200px
if(Key.isDown(Key.LEFT)){
background._x-=200
}
nathan99
February 10th, 2006, 12:11 AM
i think he means more like
if(Key.isDown(Key.LEFT) && background._x>-200){
background._x-=2
}
mayjarboi
February 10th, 2006, 05:59 PM
here is the code ive got so far but the background keeps scrolling after -200 pixels. How do i make it stop completely after -200px even if left is still down?
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_root.background._x -= 4;
}
}
bombsledder
February 10th, 2006, 06:47 PM
same way nathan99 said
Reaperrr1
February 13th, 2006, 11:48 AM
I am working on a 3d game but i dont know how to make any texture for the wals ot for the gras etc.
can someone help me?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.