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

#1 2012-01-07 13:43:26

sc_canuck
New Scratcher
Registered: 2012-01-07
Posts: 3

How to get a negative number variable/ coordinates?

I want to make a game in which the user chooses the coordinates for an object, but, I cant figure out how to make the coordinates negative because the sliders wont go under zero, but, scratch uses a Cartesian grid so half of it is negative.  hmm   Is there any way around this  other than telling them to not input a negative number because that is not really an option. thanks ALOT!!!!

Offline

 

#2 2012-01-07 13:50:05

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How to get a negative number variable/ coordinates?

Set the variable to slider, and then right click it (Windows) or control click (Mac) and click “Set slider min and max”.  wink

Good luck!

Let me know if something goes wrong.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2012-01-07 13:50:11

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: How to get a negative number variable/ coordinates?

The sliders go under zero for me, you can't set the min to below 0?

Or did you not change the min and max?  If not, right click the slider variable and select "change min and max".  There you can change what numbers the variable can slide to.

EDIT: Drat, outposted.

Last edited by Kileymeister (2012-01-07 13:51:08)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#4 2012-01-07 13:59:31

sc_canuck
New Scratcher
Registered: 2012-01-07
Posts: 3

Re: How to get a negative number variable/ coordinates?

THANK YOU THANK YOU THANK YOU!!!!! I was trying and trying to figure it out but could not find that information anywhere, haha I feel so stupid  smile  thank you though, I was making a game to help the younger kids get math and i was about to email the lady in charge to say that i had come into trouble and the project would be late, but thank you so much !!!!!!!

Offline

 

Board footer