How do you make a variable look fancy? Each time you set a variable, it has a orange color. But what if you wanted it to look diffrent, so that it does not look like a variable? How do you do that?
Offline
Well, I have done that with this project, but with it displaying months.
Here's how I would do it.
You have to make a sprite for each number place, say 4.
Then you make each one have 10 costumes 0-9.
Then you need a sprite to send messages to these display sprites.
Here is an example of what I'm talking about:
If <letter (4) of [score] = (0)> broadcast [0_] endExcuse the poor blocking skills...
when I receive [0-9 v] switch to costume# [0_]Blocks, so that each one goes up a number and switches to the appropriate costume.
Offline
One of the best ways to display a variable is to stamp it onto the screen using a sprite with 10 costumes of the numbers 0-9, with 1 as 1, 2 as 2, etc., and 0 as 10. The sprite functions on a simple script.
when gf clicked forever clear set [Counter v] to (1) go to x: (230) y:(170) //Rightmost starting point of text repeat (length of (Score)) switch to costume (item (Counter) of (Score)) stamp change x by (-5) //Width of widest letter end endThis should stamp text on the top-right corner of your game showing the score.
Offline
No problem, i'm assuming that you used the simpler one above? :p
I don't yet know how to use lists or stamps, so its good thing you commented, OverPowered!
Regards,
CAA24
Offline
Not on scratch? what does that mean? You don't use it?
Regards,
CAA14
Offline
Okay, I'm sorry to hear that, did you get it to work the other way?
You also must make sure that all your broadcasts are correct for my way to work, but you are not obligated to use my way, try the other one.
Regards,
CAA14
Offline
I did not mean your way. I have not tried your way yet, but I will try it! I meant OverPowered's way. The script had one that said stamp. It took me all day to take the stamped sprite off.
Offline
Wow, so, you still have another way, good.
Well, OverPowered's way i thought would work better... Oh well.
If you have any questions or would like me to make the engine and post it for you to download, then just ask.
Regards,
CAA14
Offline