Is there a way to create structures in Transcript?
I want to represent an entity that has several attributes
(actually, I want to represent an array of such entities).
So, is there something similar to the "struct" that exists
in programming languages like c++ and scheme?

For example, one of my students wants to create an array
of bullets for his video game.  For each bullet we need to
know the following:
 - its current availability (already in use, or available)
 - its movement in the x direction if in use
 - its movement in the y direction if in use

We could use three parallel arrays, but it seems cleaner to
use a struct.  Is it possible?

If each bullet is a graphic or button, they could each have the three pieces of data as custom properties stored in each bullet. If you needed more, just clone an existing template so it would have the default properties already set.

Cheers,
Sarah

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to