You can create variables, you can create lists, now I suggest objects:
Objects are like sprites stocked in lists, they have this values: position x, position y, direction, height and width. But they haven't any costumes, any scripts and they take a really little place. They are invisible on the screen.
And now, imagin if I create an object "target".
Then I can do for example:
point towards: target
or
if touching target
It would be really usefull for games (bound zone, create AI, etc).
An other point: we can change the sprite's size only with the "set size to %". With the objects, we can change the x and y size ( = really easy).
My bloc suggestions for this idea:
Legend: < bloc > / <{ to put on a bloc }>
< set [value] of [object] to [] >
< change [value] of [object] by [] >
< show [value] of [object] >
< hide [value] of [object] >
(case to check/uncheck) <{ [value] of object>
<{ object }> (it give all values of the object ; replace a sprite)
And maybe some shortcuts:
< [object] position: x [] y [] >
< [object] size: x [] y [] >
Post your comments!
PS: sorry for my bad english.
Offline
Hm... It's a great idea, but I'm afraid it might be rather too complicated for newer users to understand. While it is my new philosophy that everything doable via the GUI should be doable by blocks, I'm not sure it's all that practical.
Offline
coolstuff wrote:
Hm... It's a great idea, but I'm afraid it might be rather too complicated for newer users to understand. While it is my new philosophy that everything doable via the GUI should be doable by blocks, I'm not sure it's all that practical.
It's hard to understand because my english is really bad, and I maybe didn't choose the good words. But with good words and concretes examples I think it wouldn't be harder than the variables or the lists. And don't worry, the news don't start to create really hard projects who need this functions.
Edit:
Jwosty wrote:
Hmm... Well you can hide a sprite...
I am talking about objects. I said sprites but it's more a point on the screen. And you can't change the size on a sprite exept if you create an other costume, but it takes place and it makes you lag.
Last edited by VilceGT (2010-08-28 11:48:27)
Offline
VilceGT wrote:
Edit:
Jwosty wrote:
Hmm... Well you can hide a sprite...
I am talking about objects. I said sprites but it's more a point on the screen. And you can't change the size on a sprite exept if you create an other costume, but it takes place and it makes you lag.
Ohh! That's what you meant. Good idea. Also, there is a blok in the looks section called "change size by %n"
Offline
Cool! Then you make an object at a certain place, and you can really use a point towards X Y block!
Offline