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

#1 2012-08-04 17:40:44

cinaparadox
Scratcher
Registered: 2012-06-04
Posts: 31

More/Less buttons

I'm making a D&D diceroller and I'm trying to make a setting where I can add more dice or less dice. I need help lining the buttons up with the variable.
What I have so far:
(Less die button)

when gf clicked
hide variable [d20 number v]
hide
go to x: (-43) y: (-26)

when [Less d20] clicked
change [d20 number v] by (-1)

when i receive [show d20 v]
if <(d20 number) < (1)>
hide
end
if <(d20 number) > (1)>
show
end
(More die button)
when gf clicked
hide
go to x: (35) y: (-26)

when [more d20] clicked
change [d20 number v] by (1)
if <(d20 number) > (4)>
hide
end

when i receive [show d20 v]
show
show variable [d20 number v]
That's my predicament.  hmm
Can anyone help me?


I really don't go one here much; but you'll see me lurking the TBG Forums.

Offline

 

Board footer