This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-08-18 09:18:34

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Pen health bar (awesome scratchers only)

How do you draw a health bar with pen?


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#2 2012-08-18 09:20:18

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Pen health bar (awesome scratchers only)

bump


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#3 2012-08-18 09:26:06

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Pen health bar (awesome scratchers only)

This might help. It's not mine.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#4 2012-08-19 15:08:30

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Pen health bar (awesome scratchers only)

Here's with pen:  smile

when green flag clicked
clear
set x to (0)
set pen color to [#43FA00]
repeat (1)  
change x by (100)
end
set pen color to [#FFFFFF]
forever  
go to x: ([0] + (health)) y: (where you want)
if <(movingdir) = [1]>  
set pen color to [#0FFF2C]
else
set pen color to [#FFFFFF]
end
Important: When you lose health, don't only change health by a number, also set that variable "moving-dir" to 0. When you gain health, set it to 1.

Hope this helps!


http://i48.tinypic.com/2072ctw.gif

Offline

 

#5 2012-08-19 16:32:31

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: Pen health bar (awesome scratchers only)

Take a look at this project which uses pen health bars - (Note that they don't flash even without turbo) - and check the scripts  smile


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

#6 2012-08-21 01:02:26

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Pen health bar (awesome scratchers only)

It works thanx , but is there no way to draw one and then draw red over it to show damage and green for health


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#7 2012-08-21 02:14:55

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Pen health bar (awesome scratchers only)


Hai.

Offline

 

Board footer