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!
At 11/9/08 09:24 PM, mikkim wrote:
says it expects a )
uhh where? whats the whole error say?
i don't have flash here but i'm pretty sure either loaded, total or cent are reserved variables meaining are they green or red writing? if so change the names so like a vLoaded or vTotal
At 11/9/08 08:54 PM, mikkim wrote:
I don't really under-stand A.S. but I made a preloader code:
var(loaded)=getBytesLoaded();
var(total)=getBytesTotal();
var(total)\ 100 * var(loaded) = var(cent);
string percent = (var(cent) %)
but it doesn't work, so I need help with the code.
var loaded=getBytesLoaded();
var total=getBytesTotal();
var cent = (var total\ 100 * varloaded);
percent = (cent+ "%");
so the question i have is this.. i have a bar that is 500px width and it is similar to a exp bar in a rpg
what im trying to do is get it to grow according to the exp you have
so if you have 50 exp and the total you need is 150 exp i need it to show that percentage but with 500px width so if the exp needed is 2000 it still works out the correct percentage does anyone know how to accomplish this?
At 11/7/08 12:27 AM, TehBoss wrote:
I've noticed that there are a little amount of RTS games on NG (All, like, 2 of them). And I've decided to create one. But, I'm still not expirienced enough for making an RTS, and all I ask for is... An extra programmer, to help me programm the base engine.
sounds fun but i got no net at homea t the moment :(
At 11/6/08 10:54 PM, zedd56 wrote:
He's a scripter, he should be able to work it out with a generic set up.
Anyways, yeah, your way would definitely help him more... but personally, i really don't want him copy/pasting anything.
I want him to think, and learn.
I absolutely despise code-ripper-offers.
as do i but yeah he coudla had a different format but like you said he should figure it out :)
At 11/6/08 10:47 PM, zedd56 wrote:
why on earth would you need his code for this?
Here is the usage of the hitTest function.
i would put this on my character's mc:
if (_root.ground_mc.hitTest(this._x, this._y, true)){
yspeed = 0;
Air = false;
}
Thar you go.
There are other usages for hitTest, for smarter collision detection, but that's good to play with if you're just starting.
Welcome to flash. Good luck.
because he may not be using a speed var or declaring it outside of the mc
so i thought if i saw the code i could then give him the hittest that will work for his setup
At 11/6/08 10:34 PM, CherinoGears wrote:
ive been trying to figure this out for HOURS.
im making a game and basic movement is top down. i cant for the life of me though, figure out how to make it so that the object you control stops when it hits an obstacle. Ive looked at tutorials about top down movements and they made no mention of it.
At 11/6/08 09:27 PM, KillerxSNRx wrote:
i tried using the code but it doesn't work. Are u sure its in Action Script 2.0? it keeps on saying: "statement must appear within on handler" and "Expected a field name after '.' operator."
i tried fixing it, but it stays the same.
on(release){
switch (Rand(4))
case 1
message1
break;
case 2
message2
break;
}
look up the correct format i can't remember it it's been a while
Warning: move_uploaded_file(upload/DxDiag.txt) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/phrazzle/public_html/flashvariable s/upload_file.php on line 20
At 11/6/08 08:47 PM, thegameboy2008 wrote:
I also need to know: Why the heck are sites slowing down my movie? My Luigi's B-Day is only like 296 KB. And it's flippin' slowed down! I tried to test it on an example site. AND IT SLOWED DOWN!!! Help me guys! And zedd56, please don't get mad.
when you test in the stand alone flash player it will run differently than one in the web browser
if you want ot make sure its correct publish your movie and then test using the html file