Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » How to link a clone with a variable???
- MemoByte
- Scratcher
93 posts
How to link a clone with a variable???
Where to start. Ok, so I'm making a new game and I wanted to make a scrolling background. I made a test project and I made 1 Sprite that can store the width height and X position of a rectangle. This way I can subtract one from the x position with scroll X. Problem: I'm unable to clone the object because clones can't clone variables with them. And enabling only for this sprite doesn't work either as suggested on the forums.
- tsulej
- Scratcher
24 posts
How to link a clone with a variable???
You can use lists and assign unique list index for each clone. Programming this is not easy but is possible in Scratch.
- Discussion Forums
- » Advanced Topics
- » How to link a clone with a variable???