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

#1 2008-08-18 11:24:46

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

New block ideas!!!

Came up with the best ideas yesterday:

Go to Edge (based on direction)

Point towards X:( ) Y:( )

That one can be used for car games, or *cough* tower defense games or somethin........

I really think these ideas could be useful. Any comments Scratch Team?

Last edited by Cyclone103 (2008-08-18 11:24:52)


All your base are belong to us

Offline

 

#2 2008-08-19 14:14:42

mletreat
Scratcher
Registered: 2008-05-01
Posts: 100+

Re: New block ideas!!!

Interesting ideas Cyclone103-

We are always looking for ways to improve Scratch and often look for ideas proposed by the community.  While we can't promise we will be able to honor every request, we will certainly consider your ideas for future releases of Scratch.

In the meantime, here is a little trick to simulate the point to x, y block you suggested:

- First create a placeholder sprite like a tiny dot, the same color as a background.
- Place this placeholder sprite at the exact x,y coordinate that you want to make another sprite point towards
- Then, use the block: point towards [placeholder sprite name]

Offline

 

#3 2008-08-19 17:17:16

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: New block ideas!!!

I know, that was the only way to do it. My idea however, assuming lists are incorporated into 1.3, would allow for a list to hold all of the positions. It is sorta hard to explain, since I can't show you with list block pictures, but it could be used to set a "waypoint" for an enemy sprite (in a tower defense game) to point to, and have it move until it hits that point, and points to the next. Just an idea.


All your base are belong to us

Offline

 

#4 2008-08-19 17:18:45

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: New block ideas!!!

I would have to create a waypoint sprite for each and every enemy in your example, cause some enemies are ahead of teh point, and some are behind. I wonder if I could use a very quick broadcast system.........


All your base are belong to us

Offline

 

#5 2008-09-03 15:51:36

ML1
Scratcher
Registered: 2007-08-28
Posts: 65

Re: New block ideas!!!

You can make tiny spot and then make it move simultousany with mouse pointer and make your sprite turn towards spot

Offline

 

#6 2008-09-03 15:58:54

ML1
Scratcher
Registered: 2007-08-28
Posts: 65

Re: New block ideas!!!

I made project for you here it is link http://scratch.mit.edu/projects/ML1/257003. Hope it will help you. Download it and see scripts. P.S. you can also try just with <point towards( mouse pointer)>. ;-)

Offline

 

#7 2008-09-03 16:00:05

ML1
Scratcher
Registered: 2007-08-28
Posts: 65

Re: New block ideas!!!

Sorry lookes like link doesn`t work. Go to my stuff, project name Test

Offline

 

#8 2009-08-06 12:15:39

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: New block ideas!!!

mletreat wrote:

Interesting ideas Cyclone103-

We are always looking for ways to improve Scratch and often look for ideas proposed by the community.  While we can't promise we will be able to honor every request, we will certainly consider your ideas for future releases of Scratch.

In the meantime, here is a little trick to simulate the point to x, y block you suggested:

- First create a placeholder sprite like a tiny dot, the same color as a background.
- Place this placeholder sprite at the exact x,y coordinate that you want to make another sprite point towards
- Then, use the block: point towards [placeholder sprite name]

That's one way to do it, but there's another way that doesn't involve making any more sprites.
Create 5 variables, in this example x dir, y dir, angle, input1, and input2.
[blocks]
<set{ x dir }to( (( <{ input1 }> <-> <x position> ))
<set{ y dir }to( (( <{ input2 }> <-> <y position> ))
<set{ angle }to( acos of (( <{ ydir }> </> sqrt of (( (( <{ x dir }> <*> <{ x dir }> )) <+> (( <{ y dir }> <*> <{ y dir }> )) )) ))
<if> <( x dir <<> 0 )>
<set{ angle }to( (( <{ angle }> <*> -1 ))
<end>
<point in direction( <{ angle }>
[/blocks]
It works, but it's a bit messy, and it doesn't work if the two inputs are equal to the sprite's position. [blocks] <{ input1 }> [/blocks] and [blocks] <{ input2 }> [/blocks] are the inputs.

Last edited by rubiks_cube_guy238 (2009-08-06 12:26:01)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#9 2009-08-07 00:39:40

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: New block ideas!!!

Go to [Edge] can be done by this:

..................
[repeat until touching [edge]]
   [move (your choice) steps]


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#10 2009-08-07 01:02:45

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: New block ideas!!!

Wasn't this thread bumped?  hmm


~ihaveamac - visit ihaveamac.net

Offline

 

#11 2009-08-07 08:55:25

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

Re: New block ideas!!!

Okay, yes they are pretty good block ideas but both of them I know how to get. Here they are:

Point to x: [] y: []: Ok this block is REALLY easy to get. Follow this link http://scratch.mit.edu/projects/TheoMarr/613160 and you'll know how to get it

Go to edge: I'm sorry, but I don't know how to get it in source code. But there is a way of making it, which is quite complicated, but I'll tell you anyway:
First of all, open the Scratch 1.4 with the Scratch 1.1 block "point away from edge". Now, below it, use the following blocks:
[blocks]<point in direction( (( <direction>  <*> -1  ))[/blocks]
[blocks]<repeat until><touching[ edge[/blocks]
[blocks]<move( Whatever  )steps>[/blocks]
[blocks]<end>[/blocks]
That should give you the go to edge block!

Last edited by TheoMarr (2009-08-07 08:56:26)

Offline

 

#12 2010-12-09 21:49:17

supergarfield
Scratcher
Registered: 2009-07-06
Posts: 27

Re: New block ideas!!!

You could make this with somthing based off scratch called BYOB

Offline

 

#13 2010-12-09 21:55:32

supergarfield
Scratcher
Registered: 2009-07-06
Posts: 27

Re: New block ideas!!!

<move( <{ Num }> )steps><wait until><touching[ Edge

Offline

 

#14 2010-12-09 22:04:47

supergarfield
Scratcher
Registered: 2009-07-06
Posts: 27

Re: New block ideas!!!

=d

Offline

 

#15 2010-12-09 22:06:46

supergarfield
Scratcher
Registered: 2009-07-06
Posts: 27

Re: New block ideas!!!

:d

Offline

 

#16 2010-12-09 22:08:33

supergarfield
Scratcher
Registered: 2009-07-06
Posts: 27

Re: New block ideas!!!

smile

Offline

 

#17 2010-12-09 22:10:46

ESN
New Scratcher
Registered: 2010-12-03
Posts: 100+

Re: New block ideas!!!

mletreat wrote:

Interesting ideas Cyclone103-

We are always looking for ways to improve Scratch and often look for ideas proposed by the community.  While we can't promise we will be able to honor every request, we will certainly consider your ideas for future releases of Scratch.

In the meantime, here is a little trick to simulate the point to x, y block you suggested:

- First create a placeholder sprite like a tiny dot, the same color as a background.
- Place this placeholder sprite at the exact x,y coordinate that you want to make another sprite point towards
- Then, use the block: point towards [placeholder sprite name]

How the heck are you a Member??


http://is.gd/jZ5chhttp://is.gd/jZhXDhttp://is.gd/jZhU7

Offline

 

#18 2010-12-09 22:11:44

supergarfield
Scratcher
Registered: 2009-07-06
Posts: 27

Re: New block ideas!!!

smile   smile   smile   smile

Offline

 

#19 2010-12-09 23:15:28

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: New block ideas!!!

ESN wrote:

mletreat wrote:

Interesting ideas Cyclone103-

We are always looking for ways to improve Scratch and often look for ideas proposed by the community.  While we can't promise we will be able to honor every request, we will certainly consider your ideas for future releases of Scratch.

In the meantime, here is a little trick to simulate the point to x, y block you suggested:

- First create a placeholder sprite like a tiny dot, the same color as a background.
- Place this placeholder sprite at the exact x,y coordinate that you want to make another sprite point towards
- Then, use the block: point towards [placeholder sprite name]

How the heck are you a Member??

Well, this topic is two years old. He posted that when the status was 'Member', not 'Scratcher', and it just never got changed to the new rank. (Probably because he may not have posted since then)

P.S. Epic necropost on the part of supergarfield!  tongue

Last edited by Harakou (2010-12-09 23:16:17)


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer