hy,
tnx for tutorial... :)
and a question if anyone can help me.
why does this work to me only if i use keys: UP,DOWN,LEFT,RIGHT,SHIFT or SPACE?
but if i put in like letter c (or whatever other letter) in stead of SHIFT,UP,..., it doesn't work...it shows box from start and not when we press key 'c'...
anyone has any idea what it might be wrong?
tnx for the help ;)
sekamoz 2 years ago
because you should use the ascii code.
the keys:UP.DOWN,LEFT,RIGHT,SHIFT,SPACE are come from ascii too. You may find a ascii list for it.
altu892 2 years ago
easier way to do it
on box put
onClipEvent(load){
_alpha=0
}
onClipEvent(enterFrame){
if(Key.isDown(Key.SPACE)){
_alpha=100
Renkay141 3 years ago
Yes, I agree, this is easier, but it isn't in Actionscript 3.0. Great tutorial by the way =D
Skeddels 3 years ago
yeah if you are using as2 this will work in as3:
alpha=0
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKey
function reportKey(event:keyboardEvent){
_alpha=1
walkerm930 3 years ago
uh...sure I guess
T_T weird code
Thanks, exactly what I was looking for.
RandomGk 3 years ago 2
This comment has received too many negative votes show
very gay....loser
Brown198500 3 years ago
gayy
gmodrules972 3 years ago
hy,
tnx for tutorial... :)
and a question if anyone can help me.
why does this work to me only if i use keys: UP,DOWN,LEFT,RIGHT,SHIFT or SPACE?
but if i put in like letter c (or whatever other letter) in stead of SHIFT,UP,..., it doesn't work...it shows box from start and not when we press key 'c'...
anyone has any idea what it might be wrong?
tnx for the help ;)
sekamoz 2 years ago
because you should use the ascii code.
the keys:UP.DOWN,LEFT,RIGHT,SHIFT,SPACE are come from ascii too. You may find a ascii list for it.
altu892 2 years ago
easier way to do it
on box put
onClipEvent(load){
_alpha=0
}
onClipEvent(enterFrame){
if(Key.isDown(Key.SPACE)){
_alpha=100
}
Renkay141 3 years ago
Yes, I agree, this is easier, but it isn't in Actionscript 3.0. Great tutorial by the way =D
Skeddels 3 years ago
yeah if you are using as2 this will work in as3:
alpha=0
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKey
function reportKey(event:keyboardEvent){
_alpha=1
}
walkerm930 3 years ago
uh...sure I guess
T_T weird code
Renkay141 3 years ago
Thanks, exactly what I was looking for.
RandomGk 3 years ago 2
This comment has received too many negative votes show
very gay....loser
Brown198500 3 years ago
This comment has received too many negative votes show
gayy
gmodrules972 3 years ago