I think Scratch should have label blocks.
That way if something happens, you could label a sprite "enemy" or "platform" or other labels. That way, you could shorten scripts and do stuff not possible before like targeting functions.
You could label a sprite platform for platforming games. You could label a sprite "enemy" and have attacks hurt enemies instead of having many scripts, each for an attack function.
You could do a targeting system, go to nearest sprite labeled enemy.
You could take away certain labels for certain reasons. When I recieve "mind Control" sprite labeled target removes label enemy
sprite labeled target gains label ally
sprite labeled target gains label temporary
sprite labeled target removes label target
wait ... seconds
sprite labeled temporary removes label ally
sprite labeled temporary gains label enemy
sprite labeled temporary removes label temporary
I know i might have spelled labelled or labeled wrong.
Last edited by Infinex_emperor (2008-08-20 23:29:07)
Offline
infinex wrote:
hmm, this would be very useful... AND SINCE WHEN DO YOU USE THAT ACCOUNT???
Since I lost the password to my others and wanted to make this post
Offline
Well, this would be EXTREMELY good for one of the games I am making soon. They should add it in 1.4
Offline
thank you TimeFreeze. I like your topic about Custom Blocks too. I hate having to re-insert a sprite one of the dropdown menus( or having to put a when I receive or broadcast), each time i create a new sprite or copy a sprite. Does your concept include that too?
In other news, you can use both my ideas of generating sprites and labels put together as you can see here:
http://scratch.mit.edu/forums/viewtopic.php?id=9724
Offline
Great idea!
Another idea would be that instead of lables, just count the start of the sprites' names.
for instance
if touching (sprites beginning with enemy)
broadcast hurt
so enemy1, enemy2, and so on would all trigger the broadcast. However, this may make it difficult to tell which sprite the player sprite is touching.
for instance
if (attacking=1) //this means the player is attacking
if (touching sprites beginning with enemy)
hide the sprite that is being attacked....
Wait a sec, how do I know which sprite to hide? All I know is that I touched an enemy.
Some clever thinking may be required to solve these problems. The real difficulty is that it must be functional yet (very) user friendly.
Last edited by archmage (2008-10-11 23:40:52)
Offline
I always expected that this idea would be better than generating sprite, I guess it all depends on the way we would like to use these things.
PS- Thanks to everyone for the thousand views
Offline
I too thought that this would become greater than generating sprites. I would use this to better myself in programming. I have beeen at a loss for ideas lately for game/video topics and I believe that this would be what I could use to expand my imagination.
Offline