Easy Version of Shootatorial #1
por creeplover
Add to your home screen for quick access
Install this game
Tap the Share button, then "Add to Home Screen" to install this game for quick access.
Easy Version of Shootatorial #1
Etiquetas para Easy Version of Shootatorial #1
Descripción
Aquí está el código. (puedes cambiar la velocidad ajustando el valor de walkspeed). onClipEvent(load){ walkspeed = 10; } onClipEvent(enterFrame){ if(Key.isDown(Key.RIGHT)){ this._x+=walkspeed; } if(Key.isDown(Key.LEFT)){ this._x-=walkspeed; } if(Key.isDown(Key.UP)){ this._y-=walkspeed; } if(Key.isDown(Key.DOWN)){ this._y+=walkspeed; } }. Soy nuevo en flash y encuentro esta forma de programar mucho más sencilla que el método shootatorial. Gracias por jugar.
Cómo jugar
Lee el tutorial. Usa las flechas para mover el remolino y usa espacio y retroceso para mover el "conejo".
Comentarios
Billzter
Dec. 01, 2008
Hi Creeplover, i suggest making the code "dynamic" text so people can copy and paste it into the AS2 box. You can change to dynamic text by going down to the bottom bar whilst using the text tool and changing to dynamic text from the drop- down bar. I hope this helped!
bosh_guitar
Nov. 27, 2008
i LOVE THE BUNNY !!!!!! 5/5
987456321
Nov. 27, 2008
good idea to help people with coding, now if you could only make a tutorial on how to make a timer
banana332
Nov. 26, 2008
ok is it a game or a turtiol?
arseiam
Nov. 25, 2008
Eoptic - THANK YOU. I'm glad I'm not the only one posting comments/feedback relating to the use of old syntax in toturials... as for the lack of encapsulation and the use of attached scripts... ARRGGHHHH. IMO, I think it should be compulsory for all tutorials to be at least AS2 and for them to pass at least a basic critique in terms of code practice before they are published. Tutorials like this devalue the tutorial section as a whole and teach new developers poor techniques.