Forum Topic: Is there a proble

(111 views • 7 replies)

This topic is 1 page long.

<< < > >>
None

exzeta

Reply To Post Reply & Quote

Posted at: 11/5/09 11:08 PM

exzeta EVIL LEVEL 10

Sign-Up: 06/08/09

Posts: 86

So i want to make a game but i am kinds NOOBish with actionscript so, what i wanna make is something like this

I have a character on stage AND i want to move him left and right so i guess the code is like this

//I dont know if this is a code i just made it up
if (Key.isDown(Key.LEFT)) {
	this.shelterdog.x += -2;
}
if (Key.isDown(Key.RIGHT)) {
	this.shelterdog.x += 2;
}

the code is placed on the frame. should i paste it on the character?


None

exzeta

Reply To Post Reply & Quote

Posted at: 11/5/09 11:30 PM

exzeta EVIL LEVEL 10

Sign-Up: 06/08/09

Posts: 86


None

grafik2d

Reply To Post Reply & Quote

Posted at: 11/6/09 09:22 AM

grafik2d NEUTRAL LEVEL 10

Sign-Up: 06/29/04

Posts: 175

put it like this, on the frame.

this.onEnterFrame=function(){
//your code
}


Elated

Mahora

Reply To Post Reply & Quote

Posted at: 11/6/09 10:03 AM

Mahora LIGHT LEVEL 02

Sign-Up: 01/02/09

Posts: 88

At 11/5/09 11:30 PM, exzeta wrote: nevermind

I take it you noticed it was suppoused to be "_x"


None

hdxmike

Reply To Post Reply & Quote

Posted at: 11/6/09 10:05 AM

hdxmike LIGHT LEVEL 09

Sign-Up: 09/11/09

Posts: 1,800

At 11/6/09 10:03 AM, Mahora wrote:
At 11/5/09 11:30 PM, exzeta wrote: nevermind
I take it you noticed it was suppoused to be "_x"

Yeah probably , hes using shitty AS2


None

exzeta

Reply To Post Reply & Quote

Posted at: 11/6/09 02:44 PM

exzeta EVIL LEVEL 10

Sign-Up: 06/08/09

Posts: 86

yeah i forgot to use AS3 instead of AS2 thats why it didnt worked cause of the

.x ._x difference


None

Rustygames

Reply To Post Reply & Quote

Posted at: 11/6/09 02:58 PM

Rustygames LIGHT LEVEL 18

Sign-Up: 05/07/05

Posts: 6,661

At 11/6/09 10:05 AM, hdxmike wrote:
At 11/6/09 10:03 AM, Mahora wrote:
At 11/5/09 11:30 PM, exzeta wrote: nevermind
I take it you noticed it was suppoused to be "_x"
Yeah probably , hes using shitty AS2

You've no right to call AS2 shitty since you don't know how to use it

- Matt, Rustyarcade.com


None

hdxmike

Reply To Post Reply & Quote

Posted at: 11/6/09 03:56 PM

hdxmike LIGHT LEVEL 09

Sign-Up: 09/11/09

Posts: 1,800

At 11/6/09 02:58 PM, Rustygames wrote: You've no right to call AS2 shitty since you don't know how to use it

Jesus rusty , calm down.


All times are Eastern Standard Time (GMT -5) | Current Time: 11:59 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!