Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

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


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!

Author Search Results: 'Greensinge'

We found 481 matches.


<< < > >>

Viewing 211-240 of 481 matches. 135 | 6 | 7 | 8 | 9 | 10 | 111417

211.

None

Topic: the orange box collab

Posted: 05/10/08 10:40 AM

Forum: Flash

At 5/10/08 10:25 AM, jimmick wrote: holy bitchshit that is awesome
also I'm not doing my tf2 part it got too long
sorry :/ but yeah it's there for DL if any of you think it's so outstandingly good that is has to be
oh and I made THEBEST comic ever last night which rabbit's seen
I am my own toughest critic, eh

lol

I like his hat


212.

None

Topic: flash game idea's

Posted: 05/10/08 10:38 AM

Forum: Flash

At 5/10/08 09:36 AM, squidly wrote: Honestly, learn code, it will take you about a year to learn the basics and after that you can learn to make something great.

I agree. I only just started learning AS 2 days ago, and it's taken me some time being patient and trying to understand everything properly, but I'm really starting to get to grips with the absolute basics like variables, functions, if/else etc. I've already started making a Sim game! It won't be anything amazing yet, as there are still parts to the game I'm still trying to find out how to do (making a current frame in a MC only appear for a few seconds, amongst other stuff) but I'm learning fairly quickly, especially with the AS: Main thread and the help of some of the kinder NG members (I've come across some absolute jerk-offs too though, so be careful how you ask for help).


213.

Questioning

Topic: flash game idea's

Posted: 05/10/08 09:34 AM

Forum: Flash

I didn't say it was a 'big issue'. I simply meant that if someone did want to do what the thread started said, and posted an idea they had because they wanted to know what people thought of it and maybe what it was missing (regardless of whether they were going to make something of it or not), it might be dissapointing to whatever extent if the person then saw their own idea made into a game that someone else happened to make before them, after seeing their ideas. It was as simple as that.

I never said the 'copying' or 'borrowing' of ideas was a terrible thing. I simply meant it would be nice if people could post their ideas here to read opinions on it, then go away and change things, then make their game, without worrying that somebody else would take it and make it first, claiming original concept.

Was the angry face really a necessity?? :)


214.

Questioning

Topic: As Q: Sim Game Stats

Posted: 05/10/08 09:16 AM

Forum: Flash

At 5/10/08 08:47 AM, GustTheASGuy wrote: Ugh it's basic logic. Don't keep coming back to have other people do obvious shit for you. If you can't do it, you're obviously too stupid to be doing this.

Hey, fuck you, you cunt. I started learning AS two days ago, so not basic logic when you've never done coding before and there's essentially a shit load of new language in front of you.

I posted this thread kindly asking for help, and you've been an arrogant prick in both of your posts, whereas in every other post people have made responding to my asking for help, people actually have, and they've been kind about it too.

I didn't ask somebody to 'do shit for me', nor did I take liberties and ask anybody to show me some code that I could copy and paste, or anything ridiculous like that. I simply asked if anyone could point out where I'd gone wrong and help me understand it if I didn't get why. So next time you feel like bashing a newbie just because you think you're better than them, how about you go fuck yourself instead? Nobody needs an arsehole like you putting them down just because they're too self-centered to actually be helpful.

Thanks to those of you who actually helped. You may (for some reason) be pleased for me to know that I've figured the max-value problem out now! :) I went and had a shower, something to eat, and chilled in the sun for a bit, then came back to it, and it seemed more obvious suddenly.

I'm still not sure how to make it so a the current frame of a MC goes back to its original frame after a certain amount of time, though. I'm looking through AS:Main, but if anybody could point out a specific tutorial that I should look at, it would be much appreciated!

Thanks :)


215.

Misunderstood

Topic: flash game idea's

Posted: 05/10/08 08:33 AM

Forum: Flash

It's quite sad that there are people out there who would actually steal ideas like you guys are saying. I think this thread is a great idea, except for the fact that it is true that people would steal the ideas for themselves. If only there was a way to do security checks on people and have a password to the thread :P


216.

Resigned

Topic: As Q: Sim Game Stats

Posted: 05/10/08 08:26 AM

Forum: Flash

Thanks for your help guys, but I'm still having a slight problem with the max values thing.

It works fine that the max values are 100 and if one of the values reaches it, and you keep clicking the button, then it doesn't go any higher, which is great. However, say I press 'Eat', and the Health stat is at 100, so I don't want any more money to come out of the account, well it still goes down, and obviously the Health stat doesn't change. This is annoying, because I want it to say something along the lines of "You have full health, so you don't need to eat" therefore, no money being spent.

I'll post the .fla, just incase anyone wouldn't mind taking a look! I've tried to organise everything as best as I can in the AS, and I know some of it might not make sense, but like I said yesterday, I only started learning AS 2 days ago! :) Also, all the values that change are only for testing purposes, I'm going to make the reduction/addition amounts more varied.

SWF

FLA

As a related but different question, too:

I know how to make it so when the player clicks a button, the current frame of a particular MC changes to a specified frame, but how do I make it so it only shows up for a few seconds, then goes back to the blank frame? As in, the player presses 'eat', then the MC changes to the frame which says "You ate! +10 Energy +10 Health -10 Hygiene -10 Money" etc.

Thanks!


217.

None

Topic: As Q: Sim Game Stats

Posted: 05/09/08 10:49 AM

Forum: Flash

OMG double post...

Forgot to mention, yes, I know there is nothing positive happening when the player presses 'Eat', but I haven't added the part yet which adds to myHealth and myHappiness yet.


218.

Crying

Topic: As Q: Sim Game Stats

Posted: 05/09/08 10:47 AM

Forum: Flash

Hi y'all! Could somebody please help me with this issue I'm having? :)

I'm trying to create a Sim style game using the AS basics I've learnt over the last few days. It currently works so that when the player presses the 'eat' button, it deducts 10 from 'myMoney' and 10 from 'myEnergy'. When the energy and money values reach 0, they don't go any further down, which is great because I don't want any of the stats to go into the minuses. The problem, however, is that if 'myEnergy' is at 0, and myMoney is at, say, 30, clicking on 'Eat' doesn't stop the money value being deducted. I need it so that if myEnergy or myMoney is 0, then no more deductions can be made.

Here is the AS for the two main functions that make the action of eating possible (the variable and button AS aren't included because I don't think that would be necessary):

function checkEat() {
	if (myMoney>9 && myEnergy>9 && myHealth>0) {
		myFlag = true;
	} else {
		myFlag = false;
		if (myMoney<9) {
		}
		trace("Cant afford");
		if (myEnergy<9) {
		}
		trace("No energy");
	}
}

function doEat() {
	checkEat();
	if (myFlag=true) {
		adjustMyMoney(-10);
		adjustMyEnergy(-10);
		myFlag = false;
	} else {
		myMoney = myMoney;
	}
}

Is there anything obvious I'm doing wrong that anybody can point out or help me with?

Thanks :)


219.

None

Topic: AS:Math - Simple

Posted: 05/09/08 08:27 AM

Forum: Flash

At 5/9/08 08:17 AM, GustTheASGuy wrote: Create a new thread next time.

Can I just ask why? I didn't see the point in wasting a thread when you just answered my question in one post, that's all! Other people asked questions here too, I didn't think it was such a problem.

if (health > 100) health = 100;

Thanks for your help!


220.

Resigned

Topic: AS:Math - Simple

Posted: 05/09/08 07:38 AM

Forum: Flash

I thought it best to post in here instead of creating a new thread:

I'm trying to make a simple game to teach myself more about AS. It's pretty much based on stats and numbers, like those Sim games there are a million of. For example:

Money: £100
Health: 100
Energy: 57
Hygiene: 21

etc. etc.

Basically, I know how to make certain buttons adjust the values of all the variables, but I can't quite figure out how to make the following happen:

Say 'Health' is at 95, and the maximum I want it to be able to go to is 100, but you do something like Eat, and it has a typical Health increase of 20. How do I make it so it doesn't become 115 but goes to 100 and stops? And the same goes for when an action removes Health, how do I make it so that if the reduction in health is more than the gap between 0 and the current value, it doesn't go into the minuses, but the player still dies etc.?

Thanks!


221.

Elated

Topic: Beginning Flash

Posted: 05/08/08 07:00 PM

Forum: Flash

Welcomez :)


222.

Happy

Topic: Beginning Flash

Posted: 05/08/08 05:44 PM

Forum: Flash

Thanks!

It was such a bitch to learn from the beginning to be honest. It took me a few hours to actually get my head around the syntax and the way certain things need to be written (and to be honest, I'm barely better now, but I'm messing about with character movement now :) )

But yeah, best way to learn is from those tut's and the thread I started, because lots of people were really helpful and told me some useful stuff. Be careful though, because some of the stuff is very slightly wrong, as people do make spelling mistakes etc.

If you look at the AS I posted at the very bottom of the thread, you'll see the (almost fully) working code from the 'game' above. The .swf above is more updated than the code, but it essentially works the same.


223.

Happy

Topic: Machinima

Posted: 05/08/08 05:19 PM

Forum: Flash


224.

Elated

Topic: Beginning Flash

Posted: 05/08/08 05:11 PM

Forum: Flash

Hey! Welcome to Newgrounds! :)

I've been animating for ages now, but just today I started getting into ActionScript too, and I've already learned a few of the basics to the extent where I've been able to piss about and make something like this (took me around 4-5 hours of the day, but it was worth it to get an understanding of everything!):

http://www.geocities.com/greensinge/shop test.swf

If you want to know where to get started, look up these AS topics anywhere you can:

Variables
The 'if' function
Functions

Sorry to say, but yeah, you will find some great tutorials and help in AS: Main on these subjects, and I garauntee you if you look into these things, you will begin to understand what I know already.

Also, check out this thread, started by myself earlier today when I was asking people for help with the basics of variables etc.

Hopefully these things should help!

If you have any more questions you want to ask someone at your own level, ask me! Otherwise, good luck getting what you want! :)


225.

Elated

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 04:36 PM

Forum: Flash

Sorry for triple post, but I solved the problem of the money going into minuses :D


226.

Elated

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 04:34 PM

Forum: Flash

Woot! :D

After hours of pissing about today, I finally managed to pretty much perfect (to my own standards) this:

http://www.geocities.com/greensinge/shop test.swf

The code:

// Variables (Money)
var myMoney:Number = 200;
// Variables (My Fruit)
var myApples:Number = 0;
var myBananas:Number = 0;
var myPears:Number = 0;
var myCoconuts:Number = 0;
// Variables (Shop Fruit)
var shopApples:Number = 10;
var shopBananas:Number = 10;
var shopPears:Number = 10;
var shopCoconuts:Number = 10;
// Functions
function adjustMyMoney(myPrice:Number) {
	if (myMoney>0) {
		myMoney += myPrice;
	}
}
// Buttons
apples.onPress = function() {
	if (shopApples>0 && myMoney>0) {
		myApples += 1;
		shopApples -= 1;
		adjustMyMoney(-5);
	}
};
bananas.onPress = function() {
	if (shopBananas>0 && myMoney>0) {
		myBananas += 1;
		shopBananas -= 1;
		adjustMyMoney(-10);
	}
};
pears.onPress = function() {
	if (shopPears>0 && myMoney>0) {
		myPears += 1;
		shopPears -= 1;
		adjustMyMoney(-15);
	}
};
coconuts.onPress = function() {
	if (shopCoconuts>0 && myMoney>0) {
		myCoconuts += 1;
		shopCoconuts -= 1;
		adjustMyMoney(-20);
	}
};

Does anybody know of any ways to simplify what I've done here? I guess functions could be used again. Perhaps something along the lines of:

 function theApples (); 

Any suggestions?

Also, you might have noticed that sometimes the player's money goes into a minus number but stops, but I'm not sure why. I have a feeling it's because the script takes money from the player no matter where it is above the value of zero. Should I be making each button so that the minimum value has to be the price of the fruit?

:)


227.

None

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 03:37 PM

Forum: Flash

At 5/8/08 03:35 PM, LCurtis wrote:
onEnterFrame will be called every frame. Since you are making a button you would use

buy.onPress = function () { adjustMyMoney(-10) }

You can also use onRelease, onRollOut, onRollOver, etc.

Thanks for that, I was wondering why it still wouldn't work ^^

If I get too bored with other things tonight, I may ask more questions...


228.

Sleeping

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 03:16 PM

Forum: Flash

Ok I'm going to piss about with everything I've been given in here today, and possibly even go back a few steps to master the utmost basics of variables and stuff. I'm not going to bother with things like status changes anymore just yet, as I think I'm getting in a bit over my head for now (I did only start AS for the first time today after all...)

One last thing though that kind of needs a bit more explaining for at the moment if that's cool guys:

I've been told by pretty much all of you to put the AS for the buttons in the same place as the main AS for everything else, and I've been trying, but I've had problems. I've written something along the lines of:

//Where 'buy' is the instance name of the button to remove 10 from the 'score'...
buy.onEnterFrame = adjustMyMoney (-10);

This doesn't work though. So what am I doing wrong? I've tried different things like buy.onPress and then putting brackets too, like buy.on(enterFrame) and buy.on(press), but I can't seem to make the buttons work without actually attaching the correct AS to the buttons themselves.

If I want to continue asking questions about this, even if I learn and understand more between today and tomorrow, would you guys recommend that I bring it up in here again, or should I start a fresh thread?

I'm posting the .fla of what I just did when I restarted and tried to do it fresh. It's the most basic I could manage before getting sick for now. Hopefully someone will be willing to have a look and point out all the things I did wrong etc. and it would also be an awesome bonus if someone actually wrote some AS in it for me. It's fine if not though.

FLA HERE :)

Thanks again for your help guys! :)


229.

Resigned

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 01:52 PM

Forum: Flash

At 5/8/08 01:29 PM, GustTheASGuy wrote: Yeah that's what I meant.

Also:

if (score < 100) text = 'danger';
else if (score < 250) text = 'fine';
else text = 'great';

Ok I tried that out with the following code:

 var myMoney:Number = 500;
function checkMyMoney() {
	if (myMoney<=0) {
		myStatus = "Bankrupt!";
	}
	if (myMoney<=100) {
		myStatus = "Danger!";
	}
	if (myMoney<=250) {
		myStatus = "Fine";
	} else {
		myStatus = "Great!";
	}
	return myStatus;
}
function adjustMyMoney(myPrice:Number):Boolean {
	if (myMoney>myPrice) {
		myMoney += myPrice;
		return true;
	} else {
		return false;
	}
}
checkMyMoney();

Buttons:

 // Buy Button

on(press){
	if (adjustMyMoney (-50)){
		myAction = "You lost 50!";
	}
	checkMyMoney ();
}

//Sell Button

on(press){
	if (adjustMyMoney (50)){
		myAction = "You gained 50!";
	}
	checkMyMoney ();
}

Ok, so here's what's happening now (half right, half wrong):

Score above 250 displays 'Great' (This is fine).
Score above 0 displays 'Fine' (This should only happen between 100-250, but for some reason the < 100 equation isn't showing 'Danger' in the text field).

Also, for some reason if I keep clicking the 'Buy' button - which reduces the score/money in chunks of 50 - the score goes all the way down to -50, then doesn't change any more, despite clicking either the Buy/Sell buttons.

Why might that be?

Also, I'm not fully understanding what this is doing:

 function adjustMyMoney(myPrice:Number):Boolean {
	if (myMoney>myPrice) {
		myMoney += myPrice;
		return true;
	} else {
		return false;
	}
} 

Sorry... :/


230.

Questioning

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 01:25 PM

Forum: Flash

Sorry for DP, but I have another question to ask as well as the one in the last post...

I assume there is a simple enough code to make the following possible?:

If the 'Score' or 'Money' value is between 0-100, the 'Status' text field shows the word 'Danger',

If the Score/Money value is between 100-250, Status field shows 'Fine',

250-500 shows 'Great'.

Thanks again to all you chaps for helping, even though I've had difficulty getting to grips with this, it's really satisfying when stuff works, and it's thanks to you guys :)


231.

None

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 01:01 PM

Forum: Flash

At 5/8/08 12:05 PM, GustTheASGuy wrote:
You'll find using 'onPress' properties on movieclips/buttons to assign events from frames is much more manageable since the code would be more concentrated in one place rather than you having to navigate the stage.
button.onEnterFrame = function () { etc

I'm not sure I get you. Do you mean that instead of attaching the AS to the buttons for increasing and decreasing the 'myMoney' value, I should have it on the same frame with the actions where the functions were first created, and target the buttons from there instead?


232.

None

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 11:53 AM

Forum: Flash

Thanks Kayn, you've been very thorough and helpful :)

This is what I have so far, and it seems to work:

var myMoney:Number = 100;
var myPrice:Number;
function checkMyMoney() {
if (myMoney<=0) {
winlose = "YOU LOSE!";
}
if (myMoney>0) {
winlose = "YOU WIN!";
}
return winlose;
}
function doMoneyCalc(myPrice) {
myMoney += myPrice;
} 

and the button:

on (press) {
doMoneyCalc(-10);
checkMyMoney();
}

Any suggestions for improvements etc.?


233.

None

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 07:13 AM

Forum: Flash

At 5/8/08 07:02 AM, KaynSlamdyke wrote:
Flash, like most coding languages, doesn't keep changing variables because other ones have changed - your output string was assigned a value of £100 and as far as Flash was concerned, it was done with it - it didn't have to change later on when the thing that assigned it changed. So while your code was correct, it just needs to keep updating it every time the cash changes.

Ok, that makes a lot of sense. Thanks for clearing that up for me.

Since you'll likely get bored of having to type those three lines of code every time you want to make a change to your player's finances, you should consider putting these as a function.

What do you mean exactly? I'll look up functions when I get back from town, but I'd appreciate a direct, brief-as-you-like explanation! :)

Thanks for the help with

<-code> this? </-code> Don't know if that worked until I post... :P (yes, I'm even pretty much a newbie at HTML too... it's a sad state of affairs...)

Because I'm not sure if the AS display code thing worked or not, I'm just going to post this next AS as I did before, and I'll know for next time, if it worked.

if (myMoneyAmount < 0) {
textWinLose = "You Lose";
} else {
textWinLose = "You Win";
}

'textWinLose' is a dynamic text field that I was hoping would change according to the value of 'myMoneyAmount'. So if the money reaches a value of '0' or less it should display that the user has lost, or gone bankrupt etc. Unfortunately, even when the value goes below '0' into the minuses, it does not change. I've tried a few combinations in the middle of the 'if' statement, for example:

if (myMoneyAmount <= 0)
if (myMoneyAmount == 0)

but none of these work. Am I making the same mistake as before with the output update?

Cheers


234.

None

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 06:57 AM

Forum: Flash

At 5/8/08 06:52 AM, GuyWithHisComp wrote: another n00b didn't read AS: Main...

MOTHERF....

:)

Thanks a lot for the help, but could you just briefly explain the importance of the output variables?

The variables were set up as soon as the flash loaded, and they were also given a value immediately. How come the values didn't change anyway?

Also, how do you make the AS appear as it is in your post?


235.

Resigned

Topic: As Q: Basic Newbie Question

Posted: 05/08/08 06:41 AM

Forum: Flash

Hi folks,

I've been leafing through the AS: Main tutorials, working my way through the tut's on Variables and the 'if' function etc. I'm an absolute newbie at AS, but I'm very interested in becoming fluent in it, even if it takes months and months (which I assume it will).

Anyway, seeing as I'm just getting to grips with the basics, I'm messing around with simple stuff like modifying the value of variables at the moment, but I've already hit a speed bump (it was bound to happen sooner or later!).

I'm trying to write a simple script that allows the value of a variable (an amount of money) to be changed with the use of two buttons (buy and sell) which will reduce or raise the amount of money.

I have the following AS on the main timeline, to initially set up the variables:

var myMoneyAmount:Number = 100;
var myMoney = "£"+myMoneyAmount;
var myMoneyDisplay = myMoney;

As far as I know, this part works fine. I have a dynamic text field on the stage, which shows '£100' exactly as I had hoped.

I then created a button object and created two instances of it, one with the variable name of 'buy' and one with 'sell' (which I'm not sure is actually necessary at this point... anyone?). The 'buy' button instance has the following AS attached to it:

on (press) {
myMoneyAmount -= 10;
}

and the 'sell' button:

on (press) {
myMoneyAmount += 10;
}

I know this is the most basic of basic, and doesn't even go beyond the skills of simple variables, but from what I've seen elsewhere in the BBS, people can be very helpful with stuff like this, and some people even seem to be tolerant of complete and utter newbies, so I guess I have a chance of getting some help :P

Please no messages like "another n00b didn't read AS: Main..." or whatever. I've read a bunch of stuff, and the Variable stuff I've read a number of times, I've just gotten a bit stuck and possible misunderstood something, or even missed something altogether.

Thanks a lot to anyone who can help! :)

(any extra tips or specific places to look with regards to this would be massively appreciated!)


236.

None

Topic: the orange box collab

Posted: 05/07/08 07:59 PM

Forum: Flash

At 5/7/08 07:56 PM, GCacti wrote:
And here's a more synced version of the animation I submitted a while back:

Cry Some More

lol I love that part man, very nicely done :)


237.

Elated

Topic: As: Beginning As 2

Posted: 05/07/08 07:55 PM

Forum: Flash

Just read the first part of this, and then this part. It's great! I'm a complete and utter newbie to AS and I really want to get involved with it. For months I've had little or no motivation because I've never found a clearly explained intro to AS. This tutorial changed that :)

Thanks!


238.

Elated

Topic: AS:Beginning

Posted: 05/07/08 07:45 PM

Forum: Flash

Really helpful, I'm just getting into AS and this was a perfect start for me. I now understand variables etc. a lot more!

Thanks :)


239.

None

Topic: GTA 4 collab

Posted: 05/07/08 06:47 PM

Forum: Flash

At 5/7/08 01:37 PM, YK-Blaze wrote: it only 5 parts? is there any place left? if so i'm in!

It's not only 5 parts, no. I think it was just an example of how the parts will work or something.

:)


240.

Resigned

Topic: Metal Gear Collab / Pico Stuff

Posted: 05/06/08 04:00 PM

Forum: NG News

Stampers most recent post about how simple it is to come up with ideas really just opened my fucking mind. I'm definitely making a new part, my box submission is probably the dryest kind of MGS box humour you could ever see, so I feel I need to make a replacement! :)


All times are Eastern Daylight Time (GMT -4) | Current Time: 03:10 AM

<< < > >>

Viewing 211-240 of 481 matches. 135 | 6 | 7 | 8 | 9 | 10 | 111417