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

#1 2009-03-15 20:35:13

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

New block ideas

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


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#2 2009-03-20 12:48:59

m00c0w
Scratcher
Registered: 2009-02-11
Posts: 5

Re: New block ideas

definetly the last one that would be very useful

Offline

 

#3 2009-03-25 13:56:14

djmoomoo
Scratcher
Registered: 2007-08-31
Posts: 57

Re: New block ideas

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.


There are 0011 types of people, those that can count in binary and those that can't.

Offline

 

#4 2009-03-25 14:07:27

Scaper
Scratcher
Registered: 2008-07-15
Posts: 2

Re: New block ideas

<point towards( Sprite 1 )
<point in direction( <direction>  <*> -2 ))
That will cause the sprites to point away.

Offline

 

#5 2009-03-25 14:22:59

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: New block ideas

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

 

#6 2009-04-11 07:57:02

the_programmer
Scratcher
Registered: 2008-12-30
Posts: 15

Re: New block ideas

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

 

#7 2009-04-15 15:11:14

animalia
Scratcher
Registered: 2008-11-02
Posts: 70

Re: New block ideas

well ther could be a variable for stretch <{ stretch }>

Offline

 

#8 2009-04-15 17:30:04

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: New block ideas

You can also do a point towards x y using trignomentry...


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#9 2009-04-15 23:24:08

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: New block ideas

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

 

#10 2009-04-16 06:58:42

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: New block ideas

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

 

#11 2009-04-17 07:59:00

animalia
Scratcher
Registered: 2008-11-02
Posts: 70

Re: New block ideas

there could be a creat variable block: <when green flag clicked>{ creat new variable }to( <{ wanted variable }>

Offline

 

#12 2009-04-17 09:20:05

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: New block ideas

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)


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#13 2009-04-17 09:24:05

Dibbo222
Scratcher
Registered: 2007-11-03
Posts: 100+

Re: New block ideas

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


The biggest tower defense game on Scratch?
http://scratch.mit.edu/projects/Dibbo222/929092

Offline

 

#14 2009-04-26 20:52:31

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: New block ideas

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.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#15 2009-04-26 20:56:08

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: New block ideas

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


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#16 2009-07-21 05:51:15

TheoMarr
Scratcher
Registered: 2009-04-13
Posts: 100+

Re: New block ideas

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

 

#17 2009-07-21 09:25:36

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: New block ideas

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

 

#18 2009-07-22 07:01:11

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: New block ideas

show /hide list!

Offline

 

#19 2010-05-04 05:03:57

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: New block ideas

JSO wrote:

You can also do a point towards x y using trignomentry...

please point me to this trig algorithm


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#20 2010-05-07 01:16:54

complex
Scratcher
Registered: 2008-02-24
Posts: 100+

Re: New block ideas

How about: Duplicate[insertspritenamehere] and Delete[insertspritenamehere] ?

Offline

 

Board footer