Flash End-of-Life, Ruffle Integration!
This game runs on Adobe Flash. Effective Jan. 2021, Adobe began blocking its flash player's use everywhere. Kongregate is now partnering with Ruffle to make some of our Flash content playable again. Please note: If you are using Ruffle, badges will not work normally. In order to earn a badge in a Flash game, you will need to complete the badge, then submit a screenshot (showing both proof of completion and your username) as a missing badge report using the report missing achievement option. Also, please join us in the Kongregate Discord for all the latest Kongregate news!
Easy Version of Shootatorial #1
开发者 creeplover
Easy Version of Shootatorial #1
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".
评论
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.