登录可保存游戏进度并赚积分!
Easy Version of Shootatorial #1

Easy Version of Shootatorial #1

开发者 creeplover

Loading ad...

Easy Version of Shootatorial #1

评分:
2.1
上架时间: November 25, 2008
最近更新: November 25, 2008
开发者: creeplover

Easy Version of Shootatorial #1 的标签

简介

Here is the code... (you can change the speed by setting the walkspeed higher or lower)

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; } }

I am new to flash and find this way of programming much easier than the shootatorial way of programming. Thanks for playing.

玩法说明

Read the tutorial. Use arrow keys to move the swirl, and use space and backspace to move the "bunny".

评论

0/1000
Billzter avatar

Billzter

Dec. 01, 2008

0
0

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 avatar

bosh_guitar

Nov. 27, 2008

0
0

i LOVE THE BUNNY !!!!!! 5/5

987456321 avatar

987456321

Nov. 27, 2008

0
0

good idea to help people with coding, now if you could only make a tutorial on how to make a timer

banana332 avatar

banana332

Nov. 26, 2008

0
0

ok is it a game or a turtiol?

arseiam avatar

arseiam

Nov. 25, 2008

0
0

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.