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: 'mofongo9'

We found 595 matches.


<< < > >>

Viewing 1-30 of 595 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91420

1.

None

Topic: Multiple if statements?

Posted: 10/07/08 07:58 AM

Forum: Flash

At 10/7/08 06:50 AM, Pasty-Flawss wrote: I usually write my code as }else{ if(){ and yours is }else if(){. My way might resolve it. (worth a try)

no in this case he's gonna want else if, not else.

try changing all the places where it looks like this
if (statement)and(statement)

to

if((statement)&&(statement)) {


2.

None

Topic: Variable minus problem.

Posted: 10/06/08 09:07 PM

Forum: Flash

At 10/6/08 07:26 PM, Clacethestickman wrote: I'm trying to make a stat attribution menu, but the command I'm using to make sure that you cannot push the attributes into minuses isn't working.

I'm trying:
if(_root.Strength < 0)
_root.Strength+=1
}

Just dosen't seem to work, and I'm not getting any script errors from the script checker either. Help, please.

im not positive of what you're trying to do, but i THINK i understand.

try
if(_root.Strength<0) {
_root.Strength=0
}

btw get into the habit of naming your variables like:
word1Word2
my
myVariable
myVariableBox


3.

None

Topic: Flash Math: Mult and Div?

Posted: 10/06/08 09:04 PM

Forum: Flash

At 10/6/08 08:57 PM, Ajax478 wrote: uummmm, yeah. you could of googled it but I'm not one of those assholes.

to multiply you use the * sign and to divide you use the / sign.

So if you wanted 7 times 8 it would be 7*8 or

And same with division, 7 divided by 7 would be 7/7

It also has the same effect with variables

var1*var2 and var1/var2

also, if you're changing a variable itself:
var1*=2
var1/=2

if you want to adjust values on the right side of an equals sign:
var1=5*3
var1=var2/5

etc etc


4.

None

Topic: Flash Math: Mult and Div?

Posted: 10/06/08 09:02 PM

Forum: Flash

At 10/6/08 08:29 PM, BeefyBoy12 wrote:

:I know frickin' action script 2.0, I just want to know if it's possible to Multiply and Divide!!
lol


5.

None

Topic: maze problems

Posted: 10/06/08 08:48 PM

Forum: Flash

*event should have been event handler


6.

None

Topic: maze problems

Posted: 10/06/08 08:46 PM

Forum: Flash

when you declare that kind of event on a frame, it doesn't go away automatically in frames without the code like it would if you put it on a movieclip that wasn't present in a different frame. on the first frame where you don't want the mouse click to bring you to w/e frame, put in

onMouseDown = null;


7.

None

Topic: Criticism for my game.

Posted: 10/05/08 01:35 PM

Forum: Flash

At 10/5/08 01:51 AM, zedd56 wrote: Whether it's your first flash or not doesn't make it any better or worse.
Actually, i lose respect for people who say "This is my first time, be easy."

i completely disagree. telling us its his first flash gives us a sense of where he is/what hes trying to accomplish with this game


8.

None

Topic: Easy Function Error :S

Posted: 09/24/08 05:25 PM

Forum: Flash

At 9/24/08 05:21 PM, CyberXR wrote: enemy1.onLoad = enemyStuff;

enemy1.onLoad=enemyStuff()


9.

Happy

Topic: Flash Application

Posted: 09/20/08 01:06 AM

Forum: Flash

could you send me a link to the carousel .fla too please? very nicely done


10.

None

Topic: inner AS?

Posted: 09/17/08 10:14 PM

Forum: Flash

At 9/17/08 10:13 PM, ssjskipp wrote: How far did you have in mind? Because as far as I know you can't change much during runtime.

like in innerhtml! like lets say:
on(release) {
myMC.innerAS="onClipEvent(enterFrame){" etc etc etc

or

myMC.innerAS=actionscriptBox.text


11.

Resigned

Topic: inner AS?

Posted: 09/17/08 09:54 PM

Forum: Flash

I was wondering if there's some way of referencing and/or editing a movieclips actionscript at runtime, much like the document.(ID).innerHTML command in HTML?


12.

None

Topic: Noobiest Question Ever

Posted: 09/17/08 08:01 AM

Forum: Flash

1: your way
Instead of writing score, write score.text EVERY TIME, and you won't be able to do:

score.text +=(Some Number);

as it will be glitchy, and won't work. AT ALL.
2: The way that doesn't suck.
Add the VARIABLE name "score". Var bar is to the right of the instance bar. It'll work instantly.

what are you talking about


13.

None

Topic: Noobiest Question Ever

Posted: 09/16/08 11:20 PM

Forum: Flash

At 9/16/08 10:05 PM, NG-Unit wrote: Alright another thing you forgot is that you have to have

score=+

instead of score+1.

Plus it would help if you declared score as a number so instead of adding 1 to the number (so instead of being 2 it'd be 11).

So in the end your code should look like this:

_root.score=number(_root.score)+1

Probably not the best way but it works.

Thats overly complicated and frankly stupid.
It wouldnt be "11" unless you defined score as "1" then added "1" to it. Just wrong.

It wouldn't be score=+, it would be score++, or score+=(however much you want to raise by)

_root.score=number(_root.score)+1 is about the most complicated way of adding one to a variable that ive ever seen. ignore that and never use it ever again


14.

None

Topic: ned a madness artist for yur flash?

Posted: 09/15/08 08:17 AM

Forum: Flash

At 9/15/08 12:43 AM, Super-Yombario wrote: onEnterFrame = function(){
if(kirk_cocaine = true&&(_root.script.error = false)){
_root.postcount = posts += thisPost;
if(_root.kirk_cocaine = true){
_root.topic = locked;
}
if(_root.topic == locked){
_root.postcount = false;
this.postLeave();
}
}

There

you have to put two equal signs in every if statement


15.

None

Topic: ned a madness artist for yur flash?

Posted: 09/14/08 09:26 PM

Forum: Flash

At 9/14/08 04:01 PM, Super-Yombario wrote: Learn to script.
if(kikr_cocaine = true){
topic == locked;
}

you can't use two equals signs to set a variable, only to reference it


16.

None

Topic: reducing lag

Posted: 09/14/08 06:33 PM

Forum: Flash

ooh k ill try all of those. thanks everyone! ill let you know which works the best, in case anyone has the same problem


17.

None

Topic: reducing lag

Posted: 09/14/08 11:10 AM

Forum: Flash

in my new game, there is a level with a bunch of big movie clips, and that level lags like a bitch. is there any way of reducing it besides revamping the level to have less movie clips?


18.

None

Topic: Coding help needed

Posted: 09/04/08 08:08 AM

Forum: Flash

At 9/4/08 08:02 AM, anime4life wrote: Okay so I'm 95% done with my flash game. I am having a little trouble figuring out how to word the coding for one of the last sections.

Brief brief summary: Answer questions right and you get an item. There are 3 different types of items and you can only get 5 of each. Once you have all 5 of each type of item you need to be able to turn them in.

My current attempt below. When you click on the button it takes you to frame 124 and automatically gives you the items atm. How was this supposed to be coded?

on(press){
if (item1 = 5)
if (item2 = 5)
if (item3 = 5)
{
gotoAndStop(124);
}
else
{
gotoAndStop(11);
} // end else if
}

i THINK what you're trying to do is:

on(press) {
if(item1==5 || item2==5 || item3==5) {
gotoAndStop(124)
} else {
gotoAndStop(11)
}
}


19.

None

Topic: Python is amazing!!!

Posted: 07/22/08 04:29 PM

Forum: Programming

what compiler/IDE/whatever do you use for python?
Part of why I've stuck with learning C++ is because Visual Studio is so easy


20.

None

Topic: in-line frames

Posted: 07/22/08 04:23 PM

Forum: Programming

Is it possible to make an inline frame so that when you click a button on the outside of the inline frame, everything loads except for the inline frame which remains untouched?


21.

None

Topic: Goto Random frame script?

Posted: 07/07/08 11:03 PM

Forum: Flash

gotoAndStop(random(number of frames)+1)


22.

None

Topic: tons of symbol lag problem

Posted: 07/04/08 12:23 PM

Forum: Flash

oh do you mean a graphic symbol?


23.

None

Topic: random mc?

Posted: 07/04/08 12:19 PM

Forum: Flash

At 7/4/08 12:00 PM, Dad00 wrote: how do i make a random mc appear at a set x and y

ty

Assuming the set X and Y are variables setX, setY:

MC=random(the number of MC's you want to choose from)+1
regulator=0
for(i in _root) {
if(regulator==MC) {
_root[i]._x=setX
_root[i]._y=setY
} else {
regulator++
}
}

try that


24.

None

Topic: tons of symbol lag problem

Posted: 07/04/08 12:16 PM

Forum: Flash

when i convert them to a graphic it makes it run even slower


25.

None

Topic: tons of symbol lag problem

Posted: 07/04/08 01:09 AM

Forum: Flash

the levels in my new game are comprised of many copied and pasted symbols of objects and thus in some levels with an especially high number of symbols it becomes very laggy. I've tried checking runtime bitmap cacheing and breaking them all up but both only make it lag more. Is there anything else I can do?


26.

None

Topic: making workspace larger?

Posted: 07/02/08 03:59 PM

Forum: Flash

im working on levels for my new game and so i need a large amount of workspace, but at a certain point flash restricts the workspace size. is there a way of removing or loosening that constraint?


27.

None

Topic: Weekly Actionscript Challenge #1

Posted: 06/29/08 10:35 PM

Forum: Flash

bump. what's up with everybody's sims?


28.

None

Topic: Weekly Actionscript Challenge #1

Posted: 06/28/08 09:06 PM

Forum: Flash

At 6/28/08 08:17 PM, Neo-13 wrote: Why not have all the entries privately PM'ed to you. Then after the competition closes, display the winner.

I like that idea. Any other codes that are desired could be requested directly from the people who made them instead of having it be mandatory for everyone to post their code.


29.

None

Topic: Weekly Actionscript Challenge #1

Posted: 06/28/08 03:52 PM

Forum: Flash


30.

None

Topic: Weekly Actionscript Challenge #1

Posted: 06/28/08 03:45 PM

Forum: Flash

work in progress:
http://spamtheweb.com/ul/upload/280608/5 6733_AI_simulator.php

the bare bones of it are done I just need to think of a way to make it impressive :).
It's purecode. Basically they all feed die and reproduce off of each other--When two living ones collide, the smaller one dies and a new one is created somewhere on the stage, assuming all of the qualities of the larger one. In this way they eventually evolve into uber cubes haha. When one dies, it turns red, and the living ones feed on it. They move around completely randomly. However, since one is reproduced as one dies, the population remains at a constant that is set at the beginning.


All times are Eastern Daylight Time (GMT -4) | Current Time: 05:04 PM

<< < > >>

Viewing 1-30 of 595 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91420