Forum Topic: Key Commands and Sound Effects

(76 views • 2 replies)

This topic is 1 page long.

<< < > >>
None

Skeik-Sprite

Reply To Post Reply & Quote

Posted at: 7/21/09 12:41 PM

Skeik-Sprite LIGHT LEVEL 15

Sign-Up: 06/19/05

Posts: 1,399

So I was working on my new game, a side scrolling shooter, when I ran into a problem. I had X set as shoot, Space set as jump, and the arrows controlled jumping and shooting.

The problem I ran into was that I couldn't run, look up and jump at the same time. Now that would take me hitting 3 keys at the same time to do, Up, Space, and Right. But when I changed jump to C, I had no problems doing any commands.

Is there any way for me to keep space as jump and not run into that problem?

Also, whenever I add sound effects to games, when they begin playing or when they overlap each other, they stutter the game for about 3 frames. That's only when they overlap though, so I had to take sound effects such as the ones for jumping and landing on the ground out because the game would lag from the sounds of the gun and the jumping coinciding. Could it be the method or is this just a problem I'm going to have to deal with.


None

Skeik-Sprite

Reply To Post Reply & Quote

Posted at: 7/21/09 01:13 PM

Skeik-Sprite LIGHT LEVEL 15

Sign-Up: 06/19/05

Posts: 1,399

Forgot to add,

http://drawlogic.com/2009/01/16/as3-soun dmanager-class-for-flash-updated-for-twe ener/

That's the class I'm using to handle the sounds.


None

El-Presidente

Reply To Post Reply & Quote

Posted at: 7/21/09 01:14 PM

El-Presidente LIGHT LEVEL 27

Sign-Up: 06/02/05

Posts: 5,204

I'm pretty sure that there's no way to avoid the keyboard problem. There are certain keys that can be help down at the same time, but many of the combinations of 3+ don't work. I doubt there's any way to get around it other than changing the keys you use. I ran into this same problem a fair amount. Sorry :(

MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 10:24 PM

<< 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!