DIRECTION TO
I would be very useful to have a sensing block that tells you the direction to another sprite or your mouse [blocks] <direction to[ [/blocks] . An example of the use of this is you could make a sprite run away without point to that sprite and so you can make a sprite point away from another.
POINT TOWARDS X Y
I really think this block would be useful [blocks] <point towards x y ( .
STAMP ON LAYER
I was playing scratch the other day when I noticed that you can't stamp on sprites!!! this is a lot of trouble so I thought maybe you can choose the layer you stamp on like you can choose the layer a sprite is on.
SPAWN A SPRITE
There should be a way to spawn a sprite you have in your sprite library and maybe have something that states were you want it to spawn you should also have something that tells a sprite to delete itself. This would be very useful in projectiles
Offline
To solve your 'direction to' problem, have another invisible sprite that points to the mouse/character. Then you could do a (direction of |pointersprite|) – (direction). See what I mean? if not, look at my 3D game engine for help.
Offline
Scaper wrote:
<point towards( Sprite 1 )
<point in direction( <direction> <*> -2 ))
That will cause the sprites to point away.
no it wont, if it was facing 1 degree, that will lead u 2 face -2, which isint much of a diffrence.
[blocks]
<point in direction( <direction> <+> 180 ))
[/blocks]
that will do it
Also sprite duplication wont happen because people will either not know how to use it, or will missuse it (computer crasher by having a duplication in a forever loop)
Offline
I think this would do it:
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever>[/blocks]
[blocks]<point towards(something [/blocks]
[blocks]<point in direction( ((<direction> <*>-1 ))[/blocks]
[blocks]<end>[/blocks]
wait...
no.
Last edited by the_programmer (2009-04-11 07:59:25)
Offline
I just barely thought of this. Maybe instead of sprite duplication (it will be kinda the same though...) How about duplicate sprite with this script. So it would be like:
[blocks]
<forever>
<end>
[/blocks]
And whatever is in that loop type thing it will have that+the sprites costumes but no other scripts and maybe another block to help with this is: [NewScript]
This will add another script and then whats under it will be the new script and then just keep doing that. But I guess that would make it easier than just plain duplication which will make it even more unlikely to happen.
And I like all the others but the Stamp on layer. (Once I figure out how to add blocks in squeak then I'll do all the suggestions myself. lol.)
Offline
14God wrote:
DIRECTION TO
I would be very useful to have a sensing block that tells you the direction to another sprite or your mouse [blocks] <direction to[ [/blocks] . An example of the use of this is you could make a sprite run away without point to that sprite and so you can make a sprite point away from another.
POINT TOWARDS X Y
I really think this block would be useful [blocks] <point towards x y ( .
STAMP ON LAYER
I was playing scratch the other day when I noticed that you can't stamp on sprites!!! this is a lot of trouble so I thought maybe you can choose the layer you stamp on like you can choose the layer a sprite is on.
SPAWN A SPRITE
There should be a way to spawn a sprite you have in your sprite library and maybe have something that states were you want it to spawn you should also have something that tells a sprite to delete itself. This would be very useful in projectiles
Direction To:
Make a "sensor" sprite (we'll call it sprite 3), and
forever
go to [ sprite 1 ]
point towards [ sprite 2 ]
end
"direction from sprite1 to sprite2" = "direction of [ sprite 3 ]
Point Towards X: Y:
Make a sprite at this X and Y (we'll call it sprite 1)
"Point towards X Y" = "point towards [ sprite 1 ]
Stamp on Layer/Spawn a Sprite - Will be useful
Offline
animalia wrote:
there could be a creat variable block: [blocks]<when green flag clicked>{ creat new variable }to( <{ wanted variable }>[/blocks]
You could just create a spare variable and don't use it until it's his time. If you REALLY need to create variables using a script, use a list and then make the script check a single line of it.
Last edited by technoguyx (2009-04-17 09:20:22)
Offline
none of these are viable except the stamp on another sprite - this would be ABSOLUTELY AWESOME!!!!!!!!!!! this wud make my "Design Your Scroller" game MUCH easier to make. it wud also make the game faster.
btw hav a look at my "Design Your Scroller" game. it's got 800 views and 115 love its.
here: http://scratch.mit.edu/projects/Dibbo222/292610
Offline
djmoomoo wrote:
To solve your 'direction to' problem, have another invisible sprite that points to the mouse/character. Then you could do a (direction of |pointersprite|) – (direction). See what I mean? if not, look at my 3D game engine for help.
I have done this before but I find it troublesome.
Offline
Scaper wrote:
<point towards( Sprite 1 )
<point in direction( <direction> <*> -2 ))
That will cause the sprites to point away.
I tried something like that once but it was choppy
Offline
14God wrote:
DIRECTION TO
I would be very useful to have a sensing block that tells you the direction to another sprite or your mouse [blocks] <direction to[ [/blocks] . An example of the use of this is you could make a sprite run away without point to that sprite and so you can make a sprite point away from another.
POINT TOWARDS X Y
I really think this block would be useful [blocks] <point towards x y ( .
STAMP ON LAYER
I was playing scratch the other day when I noticed that you can't stamp on sprites!!! this is a lot of trouble so I thought maybe you can choose the layer you stamp on like you can choose the layer a sprite is on.
SPAWN A SPRITE
There should be a way to spawn a sprite you have in your sprite library and maybe have something that states were you want it to spawn you should also have something that tells a sprite to delete itself. This would be very useful in projectiles
You can get the point to x: [] y: [] block by looking at this project: http://scratch.mit.edu/projects/TheoMarr/613160
Offline
technoguyx wrote:
animalia wrote:
there could be a creat variable block: [blocks]<when green flag clicked>{ creat new variable }to( <{ wanted variable }>[/blocks]
You could just create a spare variable and don't use it until it's his time. If you REALLY need to create variables using a script, use a list and then make the script check a single line of it.
Well, you could use it for multiplayer (/MMOs) games once they get into adding the sprite duplication.
Offline
Offline
How about: Duplicate[insertspritenamehere] and Delete[insertspritenamehere] ?
Offline