hey guys i'm building my first program using this awsome program and i basically just need to know how to set random coordinates, so if sprite1 hits sprites 2 than sprites 2 will move to a new random location. thanks a lot.
Offline
The solution is simple, just use this block: goto x pick random -220 to 220 y pick random -220 to 220
Offline
Inside of the motion category there is a "go to x: y:" block. Drag that block to the scripts area, then get two "pick a random number" block from the numbers category. Put the "pick a random number" blocks inside of the "go to x: y:" where the numbers should be. The x values go from -240 to 240 and the y values go from -180 to 180.
Paulmedwal
Offline