Discuss Scratch

solomonw2440
Scratcher
100+ posts

Moving Counter

I want to make a dynamically moving damage counter for my dungeon crawling game with clones, but I have no idea how and can't find a tutorial.
help would be VERY appreciated.

gor-dee
Scratcher
1000+ posts

Moving Counter

solomonw2440
Scratcher
100+ posts

Moving Counter

no, I mean numbers that fly out when the player deals/takes damage, heals, etc.

Last edited by solomonw2440 (Dec. 20, 2021 17:20:48)


solomonw2440
Scratcher
100+ posts

Moving Counter

if you've played castle crashers, you'll know what I mean

gor-dee
Scratcher
1000+ posts

Moving Counter

You could do this with a sprite that contains costumes for numbers 0-9. Hide this sprite and when you want a number to appear you could use a broadcast or maybe better still create a clone of that sprite. and have something like this
when I start as a clone
go to [player v]
switch costume to (health)
set size to (10) %
repeat (10)
change size by (10)
end
delete this clone
You could add ghost effect etc.

Last edited by gor-dee (Dec. 20, 2021 18:13:24)

Rahdzz
New to Scratch
19 posts

Moving Counter

Hello, sorry to be the bare of bad news but there is no way to make a counter move

but there are many tutorials on how to replicate a moving counter using the scratch Pen Extension

*if you found this helpful please let me know
Rahdzz
New to Scratch
19 posts

Moving Counter

but to make a health damage that fly's out the player all you need is a costume list

make costume's numbering from 10 - 100

and if the tool that the player is using dose 20 damage, the 20 damage costume will offset above the players head

*if you found this helpful please let me know

Last edited by Rahdzz (Dec. 20, 2021 17:59:38)

Powered by DjangoBB