Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » So umm, I'm really "confuzzled"
- gompose
-
3 posts
So umm, I'm really "confuzzled"
In a Scratch game I'm developing, I'm making enemy planes by cloning an original enemy plane and placing it on a random y axis at the right end of the screen, now this is where i run into trouble, i don't want the enemy planes to just be little targets that don't shoot back, so i tried making a missle and giving it to all the clones. The problem now, is that the clones of the missles (i put when start as clone, go to enemyplane) keeps going to the original invisible plane, and not the visible clones of the planes. is there a way for me to make the clones of the missles go to the clones of the enemy planes? or will i be stuck forever with the missles always going to the invisible original enemy plane?
- drmcw
-
1000+ posts
So umm, I'm really "confuzzled"
This should be in help with scripts where you'll be told that you need to store the x and y coordinates of each clone plane (in a local variable) and then use those values for the bomb's goto coordinates. In fact you can probably use the x position and y position monitors too, just so long as you're not referencing the sprite by name in which case you won't get the clone's values but the parent sprite.
Last edited by drmcw (Nov. 21, 2013 07:23:56)
- gompose
-
3 posts
So umm, I'm really "confuzzled"
oh um…. the help section is pretty big, can you give me a link to follow? :s
- Discussion Forums
- » Advanced Topics
-
» So umm, I'm really "confuzzled"