Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> I need a gif of the Megaman 1 health bar going, down to nothing
United Kingdom
Gamesmonkey
Posted: May 31 2008, 07:00 AM
Quote Post


More badass than anything else ever
[*][*]

Group Icon
Group: Members
Posts: 1499
Member No.: 3336
Joined: 21-February 07

Status: (0d) [--]


Could somebody animate it for me?


--------------------
user posted imageuser posted image
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Unspecified
Miaxis
Posted: May 31 2008, 07:23 AM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


May I ask why you need it .gif?


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
United Kingdom
Gamesmonkey
Posted: May 31 2008, 07:28 AM
Quote Post


More badass than anything else ever
[*][*]

Group Icon
Group: Members
Posts: 1499
Member No.: 3336
Joined: 21-February 07

Status: (0d) [--]


Because for my game, that will be the healthbar and you can't clone frames when you use the counter object.


--------------------
user posted imageuser posted image
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Unspecified
Miaxis
Posted: May 31 2008, 07:36 AM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


In the object preferences,set it´s Type to Animation.wink.gif


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
United Kingdom
Gamesmonkey
Posted: May 31 2008, 07:55 AM
Quote Post


More badass than anything else ever
[*][*]

Group Icon
Group: Members
Posts: 1499
Member No.: 3336
Joined: 21-February 07

Status: (0d) [--]


It's okay, I found a way around it.


--------------------
user posted imageuser posted image
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Unspecified
Miaxis
Posted: May 31 2008, 07:57 AM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


I meant when you set it to animation you CAN copy frames.


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
South Africa
Tri
Posted: May 31 2008, 08:23 AM
Quote Post


Courtesy of DJ Elly. (lol jsr)
[M][*][*][*][*]
[*][*][*]

Group Icon
Group: Moderators
Posts: 11832
Member No.: 836
Joined: 17-February 05

Status: (0d) [--]


I suggest you use a code that draws each life point individually, while having the black bar behind all the life points. It's gonna save you a lot of space 8O

I think this code should do it:
CODE
for (i=0; i<=obj_mega._life-1; i+=1)
draw_sprite(spr_lifpt,0,view_xview[0]+20,view_yview[0]-2*i+96);
draw_sprite(spr_lifgauge,0,view_xview[0]+16,view_yview[0]+8);


where obj_mega is MegaMan and _life is the value of his health.


...unless of course you're not using GM, in which case I suggest using a similar method and slap myself in the face for thinking everybody uses GM X(


--------------------
PMEmail PosterAOLMSN
Top
Unspecified
Miaxis
Posted: May 31 2008, 08:27 AM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


He´s using MMF2.Like I said,Counter object-Preferences-set type to Animation.


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
Unspecified
Draco Icebane
Posted: May 31 2008, 03:48 PM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


QUOTE (Latia @ May 31 2008, 06:27 AM)
He´s using MMF2.Like I said,Counter object-Preferences-set type to Animation.

This will require much work to manually animate the counter.



Here's what you do to get around that:

Make a simple background object of a full Mega Man 1 life bar, with all the pellets. Set it not to scroll with the frame, of course. Place it on a higher layer so that none of the enemies / backdrops appear above it.

Put a Counter on top of this backdrop, make it black, change it to the exact size as the life bar, and set it to not scroll with the frame. Make it count from the top to the bottom, and set its maximum value to the amount of life pellets you have (in NES Mega Man, this is about 27 or so?) This will make every 1 from that Counter correspond to 1 on the pellet bar.

Set that Counter to the maximum life MegaMan can have (27 if I was right before), minus the amount of health he has now. This will consume an extra variable for MegaMan's actual current health, which I usually make an alterable value on another object.




So, you will have three things to do this:

1. An active object with an alterable value representing MegaMan's current health.
2. A backdrop object of a full life bar (27 pellets) with "Scroll with frame" unchecked.
3. A black counter on top of the life bar with its exact width/height specifications, counting from the top being 0 to the bottom being 27, with "Scroll with frame" and "Display as background" unchecked.



And you will do this:

1. Make sure whether I was right and that it's really 27 pellets max.
2. Set the black counter to 27 - MegaMan's current health.
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0427 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.18 ]