Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


Forum Topic: Check first frame key is pressed

(86 views • 13 replies)

This topic is 1 page long.

<< < > >>
None

FrickenHamster

Reply To Post Reply & Quote

Posted at: 7/26/08 02:04 AM

FrickenHamster FAB LEVEL 09

Sign-Up: 07/25/08

Posts: 86

hey is there a way to check for the first frame that a key is pressed without having a variable like

if (Key.isDown(Key.SPACE))
{
if ( spacepressed == 1)
{
code
}
spacepressed = 0;

}

thanks


None

zrb

Reply To Post Reply & Quote

Posted at: 7/26/08 02:05 AM

zrb LIGHT LEVEL 10

Sign-Up: 08/08/06

Posts: 3,851

At 7/26/08 02:04 AM, FrickenHamster wrote: hey is there a way to check for the first frame that a key is pressed without having a variable like

Can you rephrase that please ?

I can speak french :3 || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

None

FrickenHamster

Reply To Post Reply & Quote

Posted at: 7/26/08 02:12 AM

FrickenHamster FAB LEVEL 09

Sign-Up: 07/25/08

Posts: 86

At 7/26/08 02:05 AM, zrb wrote:
At 7/26/08 02:04 AM, FrickenHamster wrote: hey is there a way to check for the first frame that a key is pressed without having a variable like
Can you rephrase that please ?

like Key.pressed not Key.isdown


None

zrb

Reply To Post Reply & Quote

Posted at: 7/26/08 02:13 AM

zrb LIGHT LEVEL 10

Sign-Up: 08/08/06

Posts: 3,851

At 7/26/08 02:12 AM, FrickenHamster wrote: like Key.pressed not Key.isdown

Nope, you need to use that variable to check if its pressed or held.
Sorry :(

I can speak french :3 || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

None

FrickenHamster

Reply To Post Reply & Quote

Posted at: 7/26/08 02:31 AM

FrickenHamster FAB LEVEL 09

Sign-Up: 07/25/08

Posts: 86

At 7/26/08 02:13 AM, zrb wrote:
At 7/26/08 02:12 AM, FrickenHamster wrote: like Key.pressed not Key.isdown
Nope, you need to use that variable to check if its pressed or held.
Sorry :(

aww that sucks, amkes me miss gamemaker


None

zrb

Reply To Post Reply & Quote

Posted at: 7/26/08 02:34 AM

zrb LIGHT LEVEL 10

Sign-Up: 08/08/06

Posts: 3,851

At 7/26/08 02:31 AM, FrickenHamster wrote: aww that sucks, amkes me miss gamemaker

GameMaker sucks, Flash ftw :P

I can speak french :3 || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

None

FrickenHamster

Reply To Post Reply & Quote

Posted at: 7/26/08 03:09 AM

FrickenHamster FAB LEVEL 09

Sign-Up: 07/25/08

Posts: 86

At 7/26/08 02:34 AM, zrb wrote:
At 7/26/08 02:31 AM, FrickenHamster wrote: aww that sucks, amkes me miss gamemaker
GameMaker sucks, Flash ftw :P

that hurt D:


None

zrb

Reply To Post Reply & Quote

Posted at: 7/26/08 03:11 AM

zrb LIGHT LEVEL 10

Sign-Up: 08/08/06

Posts: 3,851

At 7/26/08 03:09 AM, FrickenHamster wrote: that hurt D:

Its just my opinion, your entitled to yours :3

I can speak french :3 || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

None

FrickenHamster

Reply To Post Reply & Quote

Posted at: 7/26/08 03:20 AM

FrickenHamster FAB LEVEL 09

Sign-Up: 07/25/08

Posts: 86

At 7/26/08 03:11 AM, zrb wrote:
At 7/26/08 03:09 AM, FrickenHamster wrote: that hurt D:
Its just my opinion, your entitled to yours :3

i suppose to, talk to me on aim :D


None

Resolution

Reply To Post Reply & Quote

Posted at: 7/26/08 06:11 AM

Resolution LIGHT LEVEL 11

Sign-Up: 12/30/07

Posts: 296

This is how I convinced my friend to move onto learning Flash and ditch Gamemaker :]

Flash is better in almost every respect, apart from how easy it is to learn.

_Resolution`·.¸¸.·´¯`·._.·` | Send me a message | View my blog |


None

FrickenHamster

Reply To Post Reply & Quote

Posted at: 7/26/08 02:09 PM

FrickenHamster FAB LEVEL 09

Sign-Up: 07/25/08

Posts: 86

At 7/26/08 06:11 AM, Resolution wrote: This is how I convinced my friend to move onto learning Flash and ditch Gamemaker :]

Flash is better in almost every respect, apart from how easy it is to learn.

that was pretty biased and unpersuasive sorry D:


None

DawnOfDusk

Reply To Post Reply & Quote

Posted at: 7/26/08 02:27 PM

DawnOfDusk LIGHT LEVEL 11

Sign-Up: 02/22/08

Posts: 1,100

At 7/26/08 06:11 AM, Resolution wrote: This is how I convinced my friend to move onto learning Flash and ditch Gamemaker :]

Flash is better in almost every respect, apart from how easy it is to learn.

It's funny how I went from GM to flash, GM can get annoying over time, and actually does have some annoying glitches.

That was a good post, if the Topic Maker read the whole thing ppl actually have reasonable points.
GM is really a step down from flash.

One of the things that I love THE MOST ABOUT FLASH, is that it allows users to use as much or as little animation as possible, along w/ as much or as little lines of code as possible. GM normally requires quite a bit of both.
Regardless, flash games almost always... ALWAYS look nicer than a GM game.


None

Wurmy

Reply To Post Reply & Quote

Posted at: 7/26/08 02:53 PM

Wurmy EVIL LEVEL 23

Sign-Up: 06/20/06

Posts: 1,840

At 7/26/08 06:11 AM, Resolution wrote: This is how I convinced my friend to move onto learning Flash and ditch Gamemaker :]

Flash is better in almost every respect, apart from how easy it is to learn.

Flash IS better in every aspect. Although that post is very biased :/

hai guyz

BBS Signature

None

FrickenHamster

Reply To Post Reply & Quote

Posted at: 7/26/08 04:33 PM

FrickenHamster FAB LEVEL 09

Sign-Up: 07/25/08

Posts: 86

At 7/26/08 02:27 PM, DawnOfDusk wrote:
One of the things that I love THE MOST ABOUT FLASH, is that it allows users to use as much or as little animation as possible, along w/ as much or as little lines of code as possible. GM normally requires quite a bit of both.
Regardless, flash games almost always... ALWAYS look nicer than a GM game.

that is true, but i started out with gamemaker, so i have to stand up for it


All times are Eastern Daylight Time (GMT -4) | Current Time: 04:43 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!