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

#1 2007-07-27 16:30:46

scratched
Scratcher
Registered: 2007-07-27
Posts: 2

Dynamically create new sprite (instances)

I'd like to build a eco-system simulation:

- Define a variable 'number of nice fishes'
- Define a variable 'number of shark'
- Create instances of sharks and ants as specified by numbers
- All should get controlled by the same script

If a shark hits a 'nice fish', the fish disappears.
If two shapes of the same kind meet, they create a new of the same kind.

Q: Can I dynamically create new instances of sprites?

Offline

 

#2 2007-07-28 01:11:21

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Dynamically create new sprite (instances)

No you can't create new instances dynamically in scratch.
See the Suggestions Forum for the many times this has been suggested.

To get your simulation done quickly, try StarLogo, which is optimized for this sort of task.
http://education.mit.edu/starlogo/

Offline

 

Board footer