Be a Supporter!

Guys,

Is there somewhere on the site which contains a list of all the feature days on Newgrounds like robot day etc.?

I've had a good dig around but I can't find it.

Thanks.

Response to: Annoying syntax error in AS2 Posted May 24th, 2011 in Game Development

Thanks guys, got it sorted now. The reason the semicolon was there was because I was trying out different things to see if it worked, I'd also tried brackets around both operator thingys. Didn't know about the && and the == things though, thanks.


Hi guys,

I'm working on a game for my college course and I have this code:

onClipEvent(load) {
	if (doorOpened = true;) and (Key.isDown(Key.SPACE)) {
	gotoAndStop(5);
}
}

Which keeps returning this error no matter how much I fiddle around with it:

**Error** Scene=Scene 1, layer=Layer 4, frame=4:Line 2: ')' expected
     	if (doorOpened = true;) and (Key.isDown(Key.SPACE)) {

Any ideas?

Response to: eBay advice Posted May 18th, 2010 in General

At 5/18/10 03:37 PM, MittenSox wrote: Yeah my item is a really good condition and has all the original packaging, even the styrofoam and plastic bags are in the box! I think i meant to say i wasn't sure if I could link it on here!

That's a good point actually, I'm not sure about the rules on here with links to eBay and the like. Anyway, good luck selling your items!

Response to: eBay advice Posted May 18th, 2010 in General

At 5/18/10 03:29 PM, MittenSox wrote:
Yeah I thought that may be the case, as I was watching a similar item although it went for a really bad price, my bid is already higher than his final price. I think I was basically wondering wether or not 16 watchers is a lot for the average sale or just normal

It depends on the item really, if it's something that's sought after or if people think it looks like a good deal then they'll watch it, but if it's something that's pretty common on eBay or if it's just generally cheap then they might not bother and just put a bid in instead.

Response to: eBay advice Posted May 18th, 2010 in General

Having loads of watchers is usually a good sign, but a lot of eBayers watch items to see how much they sell for if they are thinking about selling something similar, especially unusual things that aren't sold on eBay very often.

Response to: This is amazing.. Posted May 17th, 2010 in General

I love that song, and yeah that is pretty awesome :D

Response to: What is the worst flash you saw. Posted May 17th, 2010 in General

I've seen so many things that have been submitted into the portal that just make me lose faith in NGers, and it pisses me off even more that some of that crap has actually got through, can't think of any particular ones though.

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

At 5/12/10 11:33 AM, Razyphr wrote: How about this - disguise 'forward', 'back' and other cheaters' options on the context menu as links to the game over frame, but also add:

var myMenu_cm:ContextMenu = new ContextMenu ();
myMenu_cm.builtInItems.quality = true;

... which would leave the quality menu in; one way round the quality vs. cheaters issue.

That wouldn't work either, the player can right click somewhere and move the cursor right to the end of the maze, left click on the exit, and they've won the level without haveing to do anything, but good thinking.

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

At 5/12/10 11:10 AM, Callum123456 wrote: No it just shows what a bad coder you are. It is easily possible to stop the right-click cheat without being so annoying, and making it restart just because somebody wanted to change the quality .

Wow, chill out. What makes you think I'm not going to have a different way of changing the quality like pressing the 'Q' button or I might have a pause menu and you can do it from there?

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

At 5/12/10 10:51 AM, KaynSlamdyke wrote:
At 5/12/10 10:41 AM, Godge wrote: Ah, very good point, thanks very much ;)
Or, make a game that can't be beaten by someone right clicking... Honestly. Do you not consider tablet and touchscreen users either?

That's the whole idea, when the player right clicks they'll lose the game and have to restart the level.

At 5/12/10 10:52 AM, KynetiK-27 wrote: From what I understand, RMB is easy to detect a keypress, but it will always produce a menu. You can limit the menu items, or create your own blank menu to trick it, but a menu will always appear, making RMB essentially a redundant key.

Am I wrong? Or is it possible to make RMB as useful as any other keypress by overriding this menu? Perhaps if you have control over the script running the page it is embedded on, then maybe you can break a few rules, but Im not sure.

Using that code it will still open up a menu (which can be changed anyway), but it can also be used as if the player has left clicked or pressed any other button on the keyboard.

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

At 5/12/10 10:27 AM, Doomsday-One wrote: Use the second method mentioned in my post! Don't use the first lest you have your game spoiled by Mac users!

Ah, very good point, thanks very much ;)

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

At 5/12/10 10:20 AM, Doomsday-One wrote: One way is:

if (Key.isDown(2)) { //2 is the keycode for right-click on Windows
//frame code
}

Thanks buddy, I worked out how to do it anyway, hence the last post, I hadn't realised you had posted that. Thanks anyway :)

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

I've worked out how to do it, I knew it was possible :P Here's the code:

_root.onEnterFrame = function () {
if (Key.isDown(2)) {
gotoAndStop('rightclicked');
}
};

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

OK, thanks anyway, I'll just completely disable right click for now anyway.

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

Are you talking about the right arrow key? That is code for the left arrow key.

No, I'm talking about right click. I know that code is for the left arrow, I was just using it as an example, but where the left arrow key is defined in the code there is a way to use right click instead. It is defined by a number, that's all I can remember really.

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

I'm sure it's possible, it was something like this:

on(keypress "<left>") {
gotoAndStop('rightclicked');
}

but obviously instead of using the left button to trigger it used right click, which was defined by a number.

Response to: AS2 RIght click action Posted May 12th, 2010 in Game Development

At 5/12/10 08:41 AM, robin1232 wrote: what did you google?
http://www.terrypaton.com/as2-right-clic k/

I tried googling a number of things with "right click", "click action", etc. and I came up with a lot of results like the one in your link but that's different to what I want. I want it so that when the user right clicks, it takes them to another frame in the animation.

AS2 RIght click action Posted May 12th, 2010 in Game Development

Hi,

I'm trying to make a mouse maze game and I'm a bit out of practice with flash. Basically all I want to do is make it so that when you right click it takes you to another frame. I know it's possible using if functions or something similar as I've done it before in something else I was working on a while back but since then I've lost everything so I can't go back and look at the code :( oh and btw I have tried searching google and the forums but I can't really find what I want.

Thanks in advance.

Response to: audio portal .downloads-how to Posted October 15th, 2009 in General

At 10/15/09 05:53 PM, xjanus wrote: been months since last on NG site...used to download from audio (ex.: brokencrossfader) by pressing button for download....NO MORE!...no button on page when i want to. HELP

It's the button with the floppy disc, it's pretty visible I don't know how you could miss it.

Response to: my fucked up... Posted October 15th, 2009 in General

You're being a twat, it's easy. Both buses won't be at the station at 6.55, because the bus that takes 25mins will be there at 6.25, 6.50, 7.15 etc and the 55 min bus will be there at 6.55, 7.50, 8.45 etc. So the time that they will both be at the station at the same time is 10.35

Response to: adress bar help Posted October 10th, 2009 in General

I just realised how stupid I was posting in this ancient thread and I only just realised that it was dug up because it was the guy who tried to blow his school up. Man I'm stupid.

Response to: adress bar help Posted October 10th, 2009 in General

Also, if you want to set it so that it doesn't even save your browsing history, do this:

Go to 'Tools' > 'Internet Options'
In the 'General' tab, click 'Settings' under 'Browsing History'
Set the 'Days to keep pages in history' to '0'

Hope that helps.

Response to: Gtaiv For Pc Posted October 10th, 2009 in Video Games

I've got it on the 360 and it's a great game but not sure about the specs, check on amazon or something they usually have the specs on there.

Response to: God is sexist! :) Posted October 10th, 2009 in General

At 10/9/09 06:36 PM, cool154 wrote: NOT ANOTHER RELIGIOUS THREAD!!!

Honestly, if I wanted to here this stuff, I would go to church everyday!

Well said sir. I hate the fact that a lot of religious people haven't even considered the fact that god might not even exist. I'm not religious, but I openly accept the fact that there is no way to prove that god does or doesn't exist.

Response to: When's the last time... Posted October 10th, 2009 in General

I've never been to church to worship god seeing as I'm not religious, but I have been to churches for things like funerals and weddings obviously, and to be honest I can't even remember when the last funeral/wedding I went to was.

Response to: Chavs Pick On The Wrong People. Posted October 10th, 2009 in General

Can't be as humiliating as this