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

#1 2011-07-27 13:17:04

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

How to Click on different page

Okay this is more of a tutorial than question. I see in games there is clicking involved. But let's say you need to click a sprite to do a certain thing while playing. Let's say you are on a different thing in the game and the sprite you need to click is not there, it is hiding. Well if you know the y and x co ordinates, and click it it does that certain thing! And that, well is kinda strange. So I know how to fix that problem! You have to make a variable FOR THAT SPRITE ONLY (unless you want it to be with others) and hide the variable. Set it to 0. Put if variable = 1 then do something or if you are doing touching mouse pointer and mouse down, add another add and showing = 1. Set the variable to 1 when it is showing. When it is hiding set it to 0. It should work out  wink . Hope this helped others who had this problem.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

Board footer