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

#1 2011-11-27 18:02:58

JRL1283
New Scratcher
Registered: 2011-01-21
Posts: 7

Pen Health Bars

My current extremely large and painful project requires a health bar. Damage in my game, which is a turn-based fighting type, is randomized and based on stats so i cannot use the costume sprite version (and that takes too long anyway), so I would like to use a health bar involving the pen, but need guidance on its use. I have a health variable, and a pokemon project on this site used the health bar i need and I am trying to figure out how to use it, so please help. Also, anything about saving features would help as well, and inventory advice. This is an RPG.

Offline

 

#2 2011-11-27 19:14:21

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Pen Health Bars

Try this script:

[blocks]
<forever>
  <pen up>
  <go to x sad  Here )y sad  There
  <pen down>
  <move( health )steps> [/blocks]If this makes a long bar, divide by 2.[blocks]
  <pen up>
<end>
[/blocks]

Last edited by scratchisthebest (2011-11-27 19:16:06)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#3 2011-11-28 14:47:18

Ratty1967UK
Scratcher
Registered: 2007-05-16
Posts: 88

Re: Pen Health Bars

i'm curious why you can't use a sprite and switch costumes - what makes you say it takes too long??  hmm

Offline

 

#4 2011-11-28 15:28:34

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Pen Health Bars

Ratty1967UK wrote:

i'm curious why you can't use a sprite and switch costumes - what makes you say it takes too long??  hmm

^^^^^

If you're not prepared to use methods that take a long time, you're never gonna be able to make a brilliant game.

Last edited by RedRocker227 (2011-11-28 15:29:51)


Why

Offline

 

Board footer