You are not logged in.
Announcement
#1 25/08/08 8:24pm
- yoshiguy
- Member
- Registered: 25/08/08
- Posts: 15
yoshiguy's mini liveswif class
Hello guys i just join this board and i just answered some answer that the topic "Basic Liveswif classes" didnt answer..
here are some:
Questions Answered:
How do i make an HP bar?
How do i make buttons?
question #1
To make a HP bar u just have to follow my directions...
first you will need to insert->sprite then create a new layer to that sprite u will only need 1 frame to start making a HP bar...Then make a rectangle dont make it too fat make it thin but large on Layer 1...on Layer 2 make a tiny square that fits the rectangle u just made on Layer 1...then on Layer 1 click the rectangle and insert him a transform motion... On Layer 2 add a path to the square that goes along the rectangle so when u lose lives the square will move understand...?
So u see the transform motion and path motion up right? (the 2 blue lines were a lot of numbers are from 1....5....10 etc...) there u can extend the lines to any number and decrease it too so take 1 line to number 10 and the other to number 10 ..... soo u think u finished well your not finished, on Layer 2 select frame 1 then open the script window and select the option On Frame and put this code:
Code:
stop();
then go back to scene stage and add the HP bar sprite to any frame u want to play the HP bar then the frame u put that HP bar open again the script window and select the option On Frame (if not available click the frame) then put this code:
Code:
stop (); score = 0; lives = 10;
then click on your enemy sprite choose the option OnClipEvent(enterFrame) put on this code:
Code:
if (this.hitTest(_root.player)) { _root.lives -= 1; _root.marklife.gotoAndStop(10-_root.lives); if (_root.lives <= 0) { _root.gotoAndStop(3); } }
(This code will make u lose lives when u touch your enemy)
Then click on your HP bar and put in "marklife" on its instance name(without quotes)
That's it play your game now...
PLEASE IF I MISSED SOMETHING REPLY ME PLEASE i think i forgot something
Question#2
Answer: Making buttons
to make buttons with liveswif you will need a liveswif that has the button wizard (liveswif 2.2 has it) ok then lets start...
(NOTE:button wizard is located at INSERT->BUTTON WIZARD)
First open 2 liveswif in one open your game .... on the other open the button wizard then choose the button u want then choose the options u want then choose the colors u want then choose the size u want and background color u want and everything then chose the options import background, import size ,
import url settings(url is the only one i dont use for games) then only the button should be there then click the button and copy it go back to your game and paste it the button should appear upper left then put it anywere on the frame and then click it and open the script window then on button action select OnRelease then put in this code:
Code:
{ _root.gotoAndStop(Frame number); }
were it says "Frame Number" put in the frame number you want to jump like 2
there u have it a button clickable and jumpable good class huh??
PLEASE IF I FORGOT SOMETHING ON THIS BUTTON THING TELL ME
THANK ME FOR FINDING THINGS OUT
NOTE FOR ALL: THIS WAS MY FIRST POST HERE HAHAHA
Offline
#2 25/08/08 9:39pm
- Breakeraj
- Addict
- Registered: 19/02/08
- Posts: 240
Re: yoshiguy's mini liveswif class
Good Job...Looks helpful and Welcome to the Forums.
Offline
#3 26/08/08 1:44am
- Alpha009
- Edge
- From: new york
- Registered: 03/02/08
- Posts: 1117
Re: yoshiguy's mini liveswif class
YOUR CORNY WITH THAT CORNY LAUGH THING CAN YOU PLEASE STOP?
Offline
#4 26/08/08 1:58am
- switchfooter12
- Regular Member
- Registered: 21/01/08
- Posts: 27
Re: yoshiguy's mini liveswif class
he said please. you better do what he says... lol
Haha! You read this post! Do you know what that means? Cuz I don't!
Offline
#5 26/08/08 3:00am
- crimsonhotsun
- Hardcore Member
- Registered: 30/03/08
- Posts: 96
Re: yoshiguy's mini liveswif class
switchfooter12 wrote:
he said please. you better do what he says... lol
Offtopic, but is your name an allusion to the band?
[img]http://img101.imageshack.us/img101/9094/20707804nc6.png[/img]
My humble forums: [url=http://hologram.zxq.net/forums/]VirtualWorldForums[/url]
Offline
#6 31/08/08 1:00am
- yoshiguy
- Member
- Registered: 25/08/08
- Posts: 15
Re: yoshiguy's mini liveswif class
UPDATE:
how to make buttons (shortway)?
ok in this one button you just have to open your game to make this button...Ok when u open your game open the button wizard and choose the button you want ...
then click next and choose the option you want... then click next and choose the colors for the button that u want... then click next and choose the width and height you want ... then click next dont choose any option here...then click finish and ypur button should appear without the size to be reduced...
THERE U HAVE IT A CLICKABLE BUTTON WITHOUT OPENING ANOTHER GAME
please if u want the same button it should be in the library window
Offline
#7 31/08/08 1:05am
- Alpha009
- Edge
- From: new york
- Registered: 03/02/08
- Posts: 1117
Re: yoshiguy's mini liveswif class
u forgot to add that pic of the sexy girl who is licking the psp
Offline
#8 31/08/08 1:06am
- yoshiguy
- Member
- Registered: 25/08/08
- Posts: 15
Re: yoshiguy's mini liveswif class
ohh and put the codes in the first post(read all answer first) to go to another frame...
ohh if u want a button that opens a website click the button open action window and press the button action option"on Release" and put in this code:
Code:
getURL("http://pspflashgaming.com/forum");
I JUST SAID THIS TO HELP
Offline
#9 31/08/08 1:28am
- Alpha009
- Edge
- From: new york
- Registered: 03/02/08
- Posts: 1117
Re: yoshiguy's mini liveswif class
sigh ABUSE OF CORNINESS
Offline
#10 31/08/08 1:30am
- Alpha009
- Edge
- From: new york
- Registered: 03/02/08
- Posts: 1117
Re: yoshiguy's mini liveswif class
I FLY LIKE PAPERS
GET HIGH LIKE PLANES
IF YOU CATCH ME IN THE CORNER I GOT VISAS IN MA NAME!
Offline
#11 18/12/08 9:37pm
Re: yoshiguy's mini liveswif class
what do yoy mean by make another layer do you use the same layer but in another segment? or do you use another frame and still have the 1st part showing?
_root.gotoAndDie( [url]www.dako300.co.nr[/url] );
Offline