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!
Okay i have an exp bar with this script on it:
onClipEvent (enterFrame) {
expbar._width = _root.sonicxp;
}
}
And the width of my exp bar is 381, so if my exp is over 381 the bar gets too big, is there any way to make it seem bigger? Because i need to add 2000 exp to it, so how can i make it so like, 2000 exp only fills up about a quarter of it?
Okay, with that code you gave me, it was a bit weird because after the max width the width never changed when it went a bit higher, the width of my health bar is 381 and when the exp goes over 381 the width doesnt ever change with that code, is there any way to fix this, or have i just changed your code the wrong way? by the way, now i have on the frame before it it says _root.sonicxp += 2000 because i thought it would be easier.
and its okay, but the bar gets too big and fills up the whole screen, is there any way of fixing this?
Oh okay, scratch that, can i make it so when sonicxp is 0 the xscale is 0 and if its a different number then the bar is full and it doesnt get any bigger?
At 11/23/09 01:56 PM, MasterExploader wrote:
hi guys iv got a problem...
i had a saving loading system the i made but i lost it and i forgoot how i did it...
so can someone help me with it?
the system needs to be like this:
it saves the last frame thet you'v been into ok?
like im playing on frame two and i got to frame 4 and i exit the game and came back after a hour and then im pressing load button and im getting back to the last frame that iv' been in..
sorry if my english is bad..
please help me.
thanks
~ MasterExploader
Save:
on (release) {
_root.sav = SharedObject.getLocal("savename");
_root.sav.data.frame = _root._currentframe;
}
That is if its a button, obviously =3
Load:
on (release) {
_root.sav = SharedObject.getLocal("savename");
gotoAndStop(_root.sav.data.frame);
}
Yet again, this is if its a button, also, next time use the search bar.
Okay, I have a variable of health, and i want to make it so the movieclip goes to frame 2 when health is 50, but when i put the code in the movieclip it doesnt work, do i have to put a duplicate variable in the movieclip also or something?
At 9/10/09 10:53 AM, bartymany wrote:
Am I too late to join? i havent read the whole forum, ill go do that now
OH btw, i havent got enough B.A, but, i probably will when i make my 3rd game, and ill make a game to show that i can do something, if it doesnt get in, it doesnt get in ^^
At 9/7/09 03:57 AM, the1manwiththeplan wrote:
Instead of using text I use a sound sort of like the sound that plays if you get the question wrong on who wants to be a millionaire o_0 lol.
So you click the button and either your attack plays or DUN DUN the empty MP sound plays.
Just thought it would save time XD
Wow, thats an awesome idea, thanks! thats saved me a lot of time and effort!
At 9/7/09 03:20 AM, johnnymoha wrote:
Do you already have a text box on screen? or do you want to create a new textbox with text in it?
If you just put a blank one on screen you can say instancename.text = "whateveryouwant"; if not, you can probably use var textField:TextField = new TextField();
textField.text = "whateveryouwant";
oh okay, sorry i didnt explain myself, i want it so, if i click a button, it checks if i have enough mp to do the attack, then if i dont it says at the bottom of the screen not enough MP
Wow, thanks, that fixed it, sorry, its just, whenever theres a problem for me, in a script its usually that i need ==, so i thought id try putting it on before asking, thanks!
Okay, I made a script, i have NO idea why it doesnt work, i have a variable called enemy attack, and i have made this script, but he always does enemy1attack0, i have checked spelling on all of the names so it isnt that, does anyone have an idea why it isnt working?