00:00
00:00

As: Main

669,939 Views | 1,520 Replies
New Topic Respond to this Topic

Response to As: Main 2010-08-21 10:14:33


i need help on creating a cooking game, involving drag and drop codes for dragging the ingredients to the pots/pans/oven ,and hitTesting i guess for when you get the right combinatinos and the bad ones, or so, each time you drop two ingredients in the same pan/bowl or something, it will always have an outcome. idk what codes to put, any tutorial where i can find the codes for something along those lines (doesnt haveto be as specific as that)

Response to As: Main 2010-08-30 18:51:54


At 8/21/10 10:14 AM, strawberrymarie wrote: i need help on creating a cooking game, involving drag and drop codes for dragging the ingredients to the pots/pans/oven ,and hitTesting i guess for when you get the right combinatinos and the bad ones, or so, each time you drop two ingredients in the same pan/bowl or something, it will always have an outcome. idk what codes to put, any tutorial where i can find the codes for something along those lines (doesnt haveto be as specific as that)

Use variables like

apple = false;
peach = false;
cream = false;

After you drop the ingredients make them true
and add this to the pot

onClipEvent(enterFrame){
if (apple = true){
if (cream = true){
_root.gotoAndStop("RightCombo")
}
}else{
_root.gotoAndStop("WrongCombo")
}

Left4DeathInFire//--//Master of Noobs

BBS Signature

Response to As: Main 2010-08-30 19:19:56


At 8/30/10 06:51 PM, Left4DeathInFire wrote: if (apple = true){
if (cream = true){

double fail:

"==" is the equality checking operator
use "&&" to connect two if statements to get a more readable and cleaner code.

Response to As: Main 2010-08-30 20:05:07


Not just double fail, EPIC FAIL. I forgot about && but, == that was a rookie mistake, damn me.


Left4DeathInFire//--//Master of Noobs

BBS Signature

Response to As: Main 2010-08-31 05:02:30


At 8/30/10 08:05 PM, Left4DeathInFire wrote: == that was a rookie mistake, damn me.

you actually don't need the operator at all, because your variables are already boolean.

Response to As: Main 2010-10-31 17:30:52


I want to make a plat-former, you play as a character with health. You can shoot enemies and they can hurt you back from health, when you kill a enemy you get points. Also there are coins that get you an extra 10 points. There are also obstacles and the game ends off with a boss then finally counts your score at the end in total. Don`t forget you can collect lives and lose them and there are check-points too.
If you can post a tutorial or a link that would help, I will also tell you when it comes out and it will be awesome.

Yours Sincerely,

loopchocolateman1234


LOL! ^_^

BBS Signature

Response to As: Main 2010-11-07 18:40:38


Added a new:
AS: Sound Stream

Response to As: Main 2011-02-23 03:46:20


Don't mean to bump buuut... seeing how none of SpamBurger's threads are existent anymore.. assuming his account was cancelled could I make a request for something similar to:

AS: Collisions - HitTesting Duped MCs by SpamBurger

thankya kind gents and she-gents

Response to As: Main 2011-02-25 03:04:47


D: Nothing for hitTest ing duplicated mcs?

Response to As: Main 2011-02-25 12:06:04


Collision with duplicated MCs is pretty easy, just use a for loop to check all hit tests beetween an array with i.

Example:

enemies=new Array();

for(i=0;i<enemies.length;i++)
{
        if(enemies[i].hitTest(this))
        {
                        // do stuff
        }
}

Response to As: Main 2011-05-14 09:48:10


Yeah, I made something :D

As: String to Array/Array to String


06-17-11: User of the Day

07-25-11: 1500th Post

08-09-11: Level 13!

Response to As: Main 2011-07-28 02:04:00


good idea pumpkinlover....


LOL! ^_^

BBS Signature

Response to As: Main 2011-07-28 17:13:18


Check out my thread for this topic

AS: Physics Ball

As: Main


LOL! ^_^

BBS Signature

Response to As: Main 2011-07-28 17:55:50


At 7/28/11 05:13 PM, loopchocolateman1234 wrote: Check out my thread for this topic

AS: Physics Ball

Check out he copy and pasting!

Response to As: Main 2011-07-28 18:20:05


"action required"

must_kill -> "The Chosen One" &&

set break on (rollOut) {
terminate action
_root.The Chosen One
}

"Shut Down"}
{

Animator VS Animation Killer Action Script


LOL! ^_^

BBS Signature

Response to As: Main 2011-08-10 17:33:53


I'm sorry, I'm only 12 and I have a really hard time learning AS, could someone possibly teach me? (Starting from the basics).

http://loopchocolateman1234.newgrounds.c om/news/post/612292


LOL! ^_^

BBS Signature

Response to As: Main 2011-12-06 10:48:14


At 7/28/11 06:20 PM, loopchocolateman1234 wrote: "action required"

must_kill -> "The Chosen One" &&

set break on (rollOut) {
terminate action
_root.The Chosen One
}

"Shut Down"}
{

Animator VS Animation Killer Action Script

LAWL

Response to As: Main 2012-07-07 07:14:34


At 8/10/11 05:33 PM, loopchocolateman1234 wrote: I'm sorry, I'm only 12 and I have a really hard time learning AS, could someone possibly teach me? (Starting from the basics).

http://loopchocolateman1234.newgrounds.c om/news/post/612292

Don't worry. I'm 10 and I have such a loooooong way to go to be a Flash professional. Conclusion:You're not alone.


BBS Signature

Response to As: Main 2012-07-07 10:22:52


At 7/7/12 07:14 AM, newgroundz2012 wrote:
Don't worry. I'm 10 and I have such a loooooong way to go to be a Flash professional. Conclusion:You're not alone.

People below the age of 13 are not allowed to have a Newgrounds account, for this reason your account will be deleted, or you will be banned.
You violated the terms and conditions of this site and admitted to it by bumping an old thread, which makes you look like a person of your age.

Response to As: Main 2012-07-07 12:39:40


Wow, I remember when I spent some time in this thread.


If ya have something to say, PM me. I have a lot of time to spare.

Also never PM egg82.

BBS Signature

Response to As: Main 2017-12-29 19:52:49


At 8/10/11 05:33 PM, loopchocolateman1234 wrote: I'm sorry, I'm only 12 and I have a really hard time learning AS, could someone possibly teach me? (Starting from the basics).

http://loopchocolateman1234.newgrounds.c om/news/post/612292

Buy a book. https://www.amazon.com/gp/product/0764589628/ref=ox_sc_act_title_1?smid=AJC03PKE1W7JD&psc=1