Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsAs a community, let's write a script, doesn't matter what it does, but we can only write one line at a time.
Rules
1. No import classes(Let's assume this will run for anyone)
2. AS 3.0
3. Don't negate any prior posts(re-declaring variables or booleans)
4. Lines of brackets, if, and else statements will not count as your line
5. Quote the code above you when adding your code to it.
6. Don't double post to put in 2 lines.
7. You can refer to a movieclips, input fields, etc and we will just add this in the ending compile
8. Have Fun!
var slide:Boolean = false; This is crazy. Absolutely insane!
But fine
var slide:Boolean = false;
var gravity:Number = 0; At 11/9/12 02:25 PM, 4urentertainment wrote: This is crazy. Absolutely insane!
But fine
it'll be fun when we start to see where it's going
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
gonna be weird working some of the weirder variables i'm sure we'll get
this actually sounds like a lot of fun :P
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0; Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
Can you explain the if/else thing? Does "if (thing == stuff)" count as a line?
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
while (true) {}
>:)
At 11/9/12 02:59 PM, MSGhero wrote: Can you explain the if/else thing? Does "if (thing == stuff)" count as a line?
like in normal syntax after formatting where it would put if or else on it's own line
//some stuff
}else{
//other stuff
that won't count as a line since you aren't actually writing a line, but what you wrote in your example WOULD be a line since you're writing "if" and the contingency
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
while (true) {
break;
} You can solve pretty much any problem you may have with AS3 by consulting the AS3 Language reference.
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
while (true) {
break;
}
I win :D
Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
At 11/9/12 03:15 PM, egg82 wrote:
I win :D
while that's negating, i don't mind since he was just code trolling lol
next post can just omit those lines
At 11/9/12 03:14 PM, ProfessorFlash wrote: while (true) {
break;
}
damnit, a minute too slow xD
Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
Let's make things interesting
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
while (true) {
break;
}
addEventListener(Event.ENTER_FRAME,Loop); oh, crap, is this in the Flash IDE, then?
I guess we're leaving out public and private as well... This is going to be an interesting game xD
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
while (true) {
break;
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
At 11/9/12 03:22 PM, egg82 wrote: oh, crap, is this in the Flash IDE, then?
I guess we're leaving out public and private as well... This is going to be an interesting game xD
we're assuming flash so if you want to refer to movieclips or fields it's permissable
We're gonna do this old school brah.
No on-stage movieclips. Someone should be able to copy/paste the end result in flash or whatever IDE he wants and play a game. So that means drawing your graphics!
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} At 11/9/12 03:30 PM, 4urentertainment wrote: We're gonna do this old school brah.
No on-stage movieclips. Someone should be able to copy/paste the end result in flash or whatever IDE he wants and play a :game. So that means drawing your graphics!
haha you just turned this into 1000 lines O_o
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} is a whole MovieClip necessary?
aww, all right...
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
function init():void {
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
function init():void {
}
function drawPlayer():void {
player.graphics.clear();
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
function init():void {
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00); // <--
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
}
Let's add a notifier to make it clear which line is new
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
function init():void {
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100); // <--
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
}
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
function init():void {
drawPlayer(); // <--
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
var coins:Vector.<MovieClip> = new Vector.<MovieClip>(); // <---
function init():void {
drawPlayer();
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
var coins:Vector.<MovieClip> = new Vector.<MovieClip>();
function init():void {
drawPlayer();
addChild(player); // <--
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} var instructions:String; //<--
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
var coins:Vector.<MovieClip> = new Vector.<MovieClip>();
function init():void {
drawPlayer();
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} var instructions:String;
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
var coins:Vector.<MovieClip> = new Vector.<MovieClip>();
function keyDown(keyCode:uint):Boolean { // <-- (yeah, i'm going the cheap route with keyboard events)
}
function init():void {
drawPlayer();
addChild(player);
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
var instructions:String;
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
var coins:Vector.<MovieClip> = new Vector.<MovieClip>();
function keyDown(keyCode:uint):Boolean { // <-- (yeah, i'm going the cheap route with keyboard events)
}
function init():void {
drawPlayer();
addChild(player);
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
player.graphics.endFill(); //<-- end those fills damn it :P
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} var instructions:String;
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
var coins:Vector.<MovieClip> = new Vector.<MovieClip>();
function keyDown(keyCode:uint):Boolean {
}
function init():void {
drawPlayer();
addChild(player);
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
player.graphics.endFill();
}
function initCoins():void { // <--
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} var instructions:String;
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var keys:Vector.<Boolean> = new Vector.<Boolean>; // <--
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
var coins:Vector.<MovieClip> = new Vector.<MovieClip>();
function keyDown(keyCode:uint):Boolean {
}
function init():void {
drawPlayer();
addChild(player);
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
player.graphics.endFill();
}
function initCoins():void {
}
addEventListener(Event.ENTER_FRAME,Loop);
function Loop(e:Event):void {
} Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
Wait...addEventListener needs to go inside a function...
I'll let you finish your key stuff since I've never seen it done that way o.o
var instructions:String;
var slide:Boolean = false;
var gravity:Number = 0;
var death:Boolean = false;
var jump:Number = 0;
var color:uint = 0xff0000; // red
var keys:Vector.<Boolean> = new Vector.<Boolean>;
var player:MovieClip = new MovieClip();
var coin:MovieClip = new MovieClip();
var coins:Vector.<MovieClip> = new Vector.<MovieClip>();
function keyDown(keyCode:uint):Boolean {
}
function init():void {
drawPlayer();
addChild(player);
}
function drawPlayer():void {
player.graphics.clear();
player.graphics.beginFill(0x00ff00);
player.graphics.drawRect(0, 0, 100,100);
player.graphics.endFill();
}
function initCoins():void {
for (var i:uint = 0; i < 10; i++) { // <--
}
}
addEventListener(Event.ENTER_FRAME,Loop); // ???
function Loop(e:Event):void {
}