449 Forum Posts by "Halosheep"
At 2/20/10 05:57 PM, BloodiestCadaver wrote: I came back from a two year break recently, and I have not seen a single thread about dick stories, sex stories, getting caught jackin off stories, and there is a lack of threads with the blushing thread mood.
What the fuck happened maan?
You weren't here to spam general up with that shit.
...a rockin to the bang bang boogie, and up jump the boogie, to the rhythm of the boogie to be...
Try, "I hate you with the intense, burning fury of a thousand burning suns."
"Bitch"
At 2/20/10 05:49 PM, NinjaDonut wrote:At 2/20/10 05:43 PM, WhoIsPaul wrote:inb4 idiotsok ill give him 1 day to think what he did and a week to read the rulesI'll read the rules, but i did not insult you.
You're already too late
I said a hip, hop, the hippie, the hippie to the hip hip hop, a you dont stop...
Wait, you live in a township AND have internet?
Well, my dad is nearly 67, and my mom is just over 23.
If you average the two, it's not that much of a differance.
:3
'sup bit-ches!
man yo so lucky gettin' yo promo to mod, so yo dont go bannin and hatin all over da fourms, yo.
Ya hear me?
Hooray!
Thanks for helping me so quickly guys, it's working now. ^^
The problem was, I wrote part of the script a couple months back, and when I went to play around with ti some more, I didn't know that the capitalisation mattered, but now i do ^^
So thanks for the help
=D
yeah, I looked over some basic keyboard input tuts and found they used event not Event, but when I changed it it didn't make a difference, but I'll try the e and evt now.
I always thought it was a personal preference, so thanks for telling me ^^
By the way, tin this part of the code:
var up:Boolean = false;
var right:Boolean = false;
var down:Boolean = false;
var left:Boolean = false;
var rightArrow:Boolean = false;
var leftArrow:Boolean = false;
Up, down, left and right are referring to the WASD keys, while rightArrow and leftArrow are literally referring to the right and left keyboard arrows.
Againa, not sure if it helps, but w/e, it might.
Hey. I've just been making a simple movement code in AS3. All it does is move the character and rotate a gun which follows the player, or it should, but every time I run the code it comes up with the same compiler error:
1120: Access of undefined X, where X is any line in the code which involves any kind of keyboard things, like keycode and stuff.
I have no idea how to fix this, and I've tried commenting out various parts of the script to see if it's only one part, but it seems to be any part of it which involves keycode of any sort.
Not sure if it'll help, but heres the code anyways.
var xSpeed:Number = 0;
var ySpeed:Number = 0;
var xAcl:Number = 0.5;
var yAcl:Number = 0.5;
var xDecay:Number = 0.9;
var yDecay:Number = 0.9;
var rotSpeed:Number = 0;
var rotAcl:Number = 0.75;
var rotDecay:Number = 0.9;
var up:Boolean = false;
var right:Boolean = false;
var down:Boolean = false;
var left:Boolean = false;
var rightArrow:Boolean = false;
var leftArrow:Boolean = false;
var yDist:Number = 155;
function keyDowns(Event:KeyboardEvent) {
if (event.keyCode == 87) {
up = true;
}
if (event.keyCode == 83) {
down = true;
}
if (event.keyCode == 68) {
right = true;
}
if (event.keyCode == 65) {
left = true;
}
}
function keyUps(Event:KeyboardEvent) {
if (event.keyCode == 87) {
event.keyCode = 0;
up = false;
}
if (event.keyCode == 83) {
event.keyCode = 0;
down = false;
}
if (event.keyCode == 68) {
event.keyCode = 0;
right = false;
}
if (event.keyCode == 65) {
event.keyCode = 0;
left = false;
}
}
function arrowKeys(Event:Keyboard){
if (event.keyCode == 37){
leftArrow = true;
}
if (event.keyCode == 39) {
rightArrow = true;
}
}
function xMove(Event) {
if (right == true) {
xSpeed += xAcl;
}
if (left == true) {
xSpeed -= xAcl;
}
if (left == false && right == false) {
xSpeed *= xDecay;
}
ship.x += xSpeed;
}
function yMove(Event) {
if (up == true) {
ySpeed -= yAcl;
}
if (down == true) {
ySpeed += yAcl;
}
if (up == false && down == false) {
ySpeed *= yDecay;
}
ship.y += ySpeed;
}
function gunRotate(Event) {
if (leftArrow == true){
rotSpeed -= rotAcl;
}
if (rightArrow == true){
rotSpeed += rotAcl;
}
gun.rotation += rotSpeed;
}
function gunFollow(Event) {
gun.x = ship.x;
gun.y = ship.y - yDist;
}
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDowns);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUps);
stage.addEventListener(KeyboardEvent.KEY_UP, arrowKeys);
stage.addEventListener(Event.ENTER_FRAME, xMove);
stage.addEventListener(Event.ENTER_FRAME, yMove);
stage.addEventListener(Event.ENTER_FRAME, gunRotate);
stage.addEventListener(Event.ENTER_FRAME, gunFollow);
Slap your computer and tell it to man up and get rid of the damn thing itself.
That whiney bitch...
They all came from stinkin criminals, so it does make sense
Got brown, but i would love to change em straight to green.
One of these already got locked, so fuck off
FUCK OFF THERES BEEN TOO MANY THREADS ON THIS SHIT RECENTLY
inb4lock
I know you all think that the media frenzy Octo-Mom had 8 children and has continued to raise them, but this is not the case. She actually sold her children to an orphanage (The babies were so famous they paid for them) and using that money she hired 8 midgets, dressed them up in baby clothes, and is now making a fortune by appearing on daytime talk shows.
Discuss.
Whoop-de-fucking-do! Hooray!
Alright, party's over
That be trippy, yo
Can I just kill two?
Justin Beiber and Miley Cyrus
SOISOISOISOISOISOISOISOISOISOISOISOISOIS OISOISOISOISOISOISOISOISOISOISOISOISOISO ISOISOISOI
All of the Hitchhiker's Guide Series, except for the one by Eoin Colfer.
Read them already, read them again you whore.
Neeiiiggghhhhh!
Translation - Oh it was you!

