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

#1 2008-12-02 12:15:45

zawicki1fromyoutube
Scratcher
Registered: 2008-07-31
Posts: 1000+

If ___ is Touching Selection

I think there should be a "selection block"o say your making a mario game. Isn't it a pain to fix all those glitches when you jump on the eneemy you die? or you want to make a weak spot on an enemy? then there should be a <> (boolean block) if INSERTHERE is touching section" block? you clik the "selection" square next to the word selection, then you can draw a box around the area! So you can make it so mario is just touching the top section if willl die, instead of all the pain of making glitchy games and sensors.


|Call Of Duty: Black Ops Wii Friend Code: 3519-4456-0013|
|Follow me on Twitter|Subscribe To My Youtube Channel

Offline

 

#2 2008-12-02 18:27:15

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: If ___ is Touching Selection

yea, that would be really helpful

Offline

 

#3 2008-12-02 18:33:07

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: If ___ is Touching Selection

How about a touching X: Y:  Along with some width and height blocks

Using this, you can touch the top of enemies.

For example
if (mario touching X:xposition of baddie Y:yposition of baddie+(height of baddie/2)){
Mario is touching the top of the baddie
}


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-12-02 18:49:09

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: If ___ is Touching Selection

zawicki1fromyoutube wrote:

I think there should be a "selection block"o say your making a mario game. Isn't it a pain to fix all those glitches when you jump on the eneemy you die? or you want to make a weak spot on an enemy? then there should be a <> (boolean block) if INSERTHERE is touching section" block? you clik the "selection" square next to the word selection, then you can draw a box around the area! So you can make it so mario is just touching the top section if willl die, instead of all the pain of making glitchy games and sensors.

i seriously could have used that in twisted ninja. That would be a great idea


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#5 2008-12-02 20:56:47

boinoinoi
Scratcher
Registered: 2007-06-05
Posts: 500+

Re: If ___ is Touching Selection

What you use here are sensor sprites.
Done.


http://i30.tinypic.com/335fpxx.jpg
"Boinoinoi is the only person on the forums that I expect to be wearing a monocle all the time behind that screen, so I'm sure being as classy as he is, he knows what he's doing"        http://myfastcounter.com/count.php?c_style=88&amp;id=1284259111http://myfastcounter.com/count.php?c_style=88&amp;id=1286068127

Offline

 

#6 2008-12-02 21:00:46

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: If ___ is Touching Selection

boinoinoi wrote:

What you use here are sensor sprites.
Done.

Not the  best option  because they are slow and they take up a sprite space. But you work with what you have.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#7 2008-12-03 15:08:11

zawicki1fromyoutube
Scratcher
Registered: 2008-07-31
Posts: 1000+

Re: If ___ is Touching Selection

archmage wrote:

boinoinoi wrote:

What you use here are sensor sprites.
Done.

Not the  best option  because they are slow and they take up a sprite space. But you work with what you have.

My only point is that it can make it easier and helps make less scripts. And Sensors can be glitchy. and BOINOINOI I already said that it would make it EASIER. Not YOU CAN'T MAKE SENSORS.


|Call Of Duty: Black Ops Wii Friend Code: 3519-4456-0013|
|Follow me on Twitter|Subscribe To My Youtube Channel

Offline

 

#8 2008-12-09 06:53:03

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: If ___ is Touching Selection

lol


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#9 2008-12-09 07:15:19

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: If ___ is Touching Selection

You could also do this pretty easily by making the bit that you would have "selected" a seperate sprite.  Or make it a unique colour.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#10 2008-12-09 19:22:09

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: If ___ is Touching Selection

im bored so i feel like randomly typing. ladjflakdjfalkdjflakdjflakdjflakdjfalkjdfoajdflakjdflakjdlfkjalkjdfkaldaddajflajdf
Hey i wrote a Word!!!! look!!...............................................^^^^^^

lol


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

Board footer