Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-09-2002, 11:10 PM   #1
joekd
flash idiot
 
Join Date: Aug 2002
Location: some where over the rianbow
Posts: 85
Send a message via Yahoo to joekd
Angry creating a life bar for a game

hello
i,m trying to create a fighting game where i use the hitest action a lot anyways while working on it i've decided to create the life bar by using the code for a bar peloader and it doen't work at all
do any one know how I can make the bar go down by 5% every time a character hits another
joekd is offline   Reply With Quote
Old 08-10-2002, 02:17 AM   #2
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,578
Default

draw your bar mc and make sure its registration point is set to center left

//hit test code
_root.bar._xscale-=5;


cheers
__________________
Billy
Online Galleries
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.