File: FirstGame.swf-(5 KB, 640x480, Other)
[_] Help? FailedGameMaker 09/16/19(Mon)00:45:33 No.3402594
I've got a walk cycle and stuff, made a clickable start button and a start screen etc.
(( https://youtu.be/LM82pfAdNJE ))
I'm having some trouble getting my character to move when I press buttons though.
I get that this isn't what the forum is for but simple Googling failed me so thank you and sorry
for the dumb post.
Marked for deletion (old).
>> [_] Anonymous 09/16/19(Mon)16:15:51 No.3402635
I lost.
>> [_] Anonymous 09/16/19(Mon)17:20:07 No.3402639
>>3402594
oh i get it
>> [_] Anonymous 09/16/19(Mon)18:35:49 No.3402650
>>3402594
set up an eventlistener for keyboard, then in that event fuction, add a check for your event
variable to see if a button like right arrow is pressed
i.e.
stage.addEventListener(KeyboardEvent.KEY_DOWN, myKeyDown);
function myKeyDown(e:KeyboardEvent):void{
if(e.keyCode == Keyboard.Right){
trace("Right arrow pressed)";
}
}
>> [_] Anonymous 09/16/19(Mon)19:29:05 No.3402658
I lost. Fuck you.
>Never forget your 1st (b0d)
>> [_] Anonymous 09/17/19(Tue)04:45:14 No.3402713
Sublime troll.
You almost had me with the techie talk.
>> [_] FailedGameMaker 09/17/19(Tue)05:15:44 No.3402716
>>3402650
Ah thanks, I was missing the "Stage" in stage.addEventListener.
I was instead trying to use root or the instances, etc. I'd looked over the few things I could
find on it and nothing (At least that I'd found) had mentioned stage, big help, thanks a bunch!