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

#1 2013-02-23 08:54:32

mimario
New Scratcher
Registered: 2013-02-13
Posts: 2

making repetitive motions automatic

Hello Everyone!

Please help. I'm working on a scratch project and can't get a repetitive motion I want to happen automatically. It happens they way I want it when I click, but I want itn to happen automatically.

Any ideas?

Thanks!

Mimario

Offline

 

#2 2013-02-23 10:01:28

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: making repetitive motions automatic

Depends what you mean by automatically. If you mean as soon as you open the project then as far as I know, there is no way to do that.If you mean as soon as you start the project just do:

when gf clicked
forever
motion

Offline

 

#3 2013-02-23 20:45:31

mimario
New Scratcher
Registered: 2013-02-13
Posts: 2

Re: making repetitive motions automatic

Thank you shadowmouse!

Excuse me for my poor spelling an question. I was trying to explain it in the shortest way possible but that did not work to well so let me explain to you what im actually trying to do. Im trying to make a mario boss test game and to kill the boss you have to jump on the bosses head! i can get mario to jump on his head and i have a whole script of what i want the boss to do when he's bobbed on the head BUT the problem is that i cant get the boss to do that script when he's hit. i dont know why.   


please help!      sad



mimario

Offline

 

#4 2013-02-23 20:56:57

dr3w8
Scratcher
Registered: 2011-07-29
Posts: 81

Re: making repetitive motions automatic

As far as I know, it is not possible to detect which side of a sprite collides with another sprite.


http://i46.tinypic.com/1zfr32r.gif
http://i37.tinypic.com/2qixx6c.png

Offline

 

#5 2013-02-25 17:12:36

harmboy
Scratcher
Registered: 2012-07-09
Posts: 5

Re: making repetitive motions automatic

post it to scratch and give me a link and i could finish it then post it to a gallery of yours, and you could download and post it as yours, but i dont really get what you mean really.  leave some notes in the project for me

Offline

 

#6 2013-02-25 21:31:37

piguillaud
Scratcher
Registered: 2010-06-19
Posts: 100+

Re: making repetitive motions automatic

make a sprite that is constantly on the head, and when it touches mario, it broadcasts a message that will execute the script. or you could also put a small dot of a different color on the head and when a certain color on mario's feet touches that color... it broadcasts a message.

when gf clicked
forever
if <color [ ] is touching color [ ]>
broadcast [touched the head!]
end
when i receive [touched the head!]
script...

Offline

 

Board footer