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

#1 2008-08-20 23:27:07

Infinex_emperor
Scratcher
Registered: 2008-08-20
Posts: 9

Labels

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

 

#2 2008-08-21 12:29:27

Ivaash
Scratcher
Registered: 2008-02-08
Posts: 100+

Re: Labels

Nice Idea


Hey there..

Offline

 

#3 2008-09-09 19:31:37

infinex
Scratcher
Registered: 2007-07-12
Posts: 24

Re: Labels

hmm, this would be very useful... AND SINCE WHEN DO YOU USE THAT ACCOUNT???


looking for a good racing game?  cool  http://scratch.mit.edu/projects/infinex/95995

Offline

 

#4 2008-09-10 04:19:34

Auron
Scratcher
Registered: 2008-08-08
Posts: 20

Re: Labels

It would be good.

Offline

 

#5 2008-09-11 16:55:17

Infinex_emperor
Scratcher
Registered: 2008-08-20
Posts: 9

Re: Labels

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

 

#6 2008-09-26 21:25:31

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: Labels

Well, this would be EXTREMELY good for one of the games I am making soon. They should add it in 1.4


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#7 2008-10-11 23:00:39

Infinex_emperor
Scratcher
Registered: 2008-08-20
Posts: 9

Re: Labels

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

 

#8 2008-10-11 23:39:58

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Labels

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)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#9 2008-11-02 11:28:46

Infinex_emperor
Scratcher
Registered: 2008-08-20
Posts: 9

Re: Labels

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

 

#10 2008-11-26 23:17:31

infinex
Scratcher
Registered: 2007-07-12
Posts: 24

Re: Labels

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.


looking for a good racing game?  cool  http://scratch.mit.edu/projects/infinex/95995

Offline

 

Board footer