Discuss Scratch

Hodee3
Scratcher
2 posts

Setting a range

I need to set a range for my variables for example “Cat Health” and i want it the scripts to be like is “if 90 - 100-> change costume to #9”
Bang_Mega_Xtreme
Scratcher
10 posts

Setting a range

Hodee3 wrote:

I need to set a range for my variables for example “Cat Health” and i want it the scripts to be like is “if 90 - 100-> change costume to #9”

Please explain your problem more clearly, or share the project you are having issues with so that I can try to help.
Happysoul05
Scratcher
100+ posts

Setting a range

simple problem:

if <((var)>(89)) and ((var)<(101))> then
switch costume to [a costume v]
Hodee3
Scratcher
2 posts

Setting a range

thanks
OTSFan203
Scratcher
500+ posts

Setting a range

Hodee3 wrote:

I need to set a range for my variables for example “Cat Health” and i want it the scripts to be like is “if 90 - 100-> change costume to #9”
try this:

if <[variable] < [rangehere]> then
change [variable] by [-1]

WHATS UR RESUME

MINE IS THE GRINCH
OTSFan203
Scratcher
500+ posts

Setting a range

Bang_Mega_Xtreme wrote:

Hodee3 wrote:

I need to set a range for my variables for example “Cat Health” and i want it the scripts to be like is “if 90 - 100-> change costume to #9”

Please explain your problem more clearly, or share the project you are having issues with so that I can try to help.
a variable range xD set a range that a variable cannot go over and/or under.

WHATS UR RESUME

MINE IS THE GRINCH
23ls1
Scratcher
1 post

Setting a range

im doing a point system on my game where you can purchase things and I want the player to have at least 100 points but if he has more I still want it to work
grkw2020
Scratcher
100+ posts

Setting a range

Please don't necropost. It's better to start a new discussion than post on an old one.

Powered by DjangoBB