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

#1 2012-04-16 09:39:01

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

More Scripting Help

I need help with scripts for Archery 6. As you can see, it glitches a lot, for example the arrow goes off when you try to change the target power. Te target won't hide when being touched, and manyother problams have occured. Can anyone help?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#2 2012-04-16 10:32:55

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: More Scripting Help

It looks like you need a waiting script on the arrow when you "play". Then it won't fire straight away. You might also need it when the arrow touches the target before the arrow goes back it's original spot. Then the target will have a chance to sense that it is touching the arrow, then it can disappear.
I might have been more helpful if I had more time...

Also, so people can find your project easily, replace the text "Archery 6" with this

Code:

[url=http://scratch.mit.edu/projects/mythbusteranimator/2468073]Archery 6[/url]

that'll look like this: Archery 6

Offline

 

#3 2012-04-16 12:40:27

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: More Scripting Help


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#4 2012-04-16 12:44:09

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: More Scripting Help

mythbusteranimator wrote:

Archery 6

You can also edit your posts  tongue  (edit the first - button in the bottom right of the post)

Offline

 

#5 2012-04-16 12:54:13

Rocket-Moon
New Scratcher
Registered: 2012-04-16
Posts: 14

Re: More Scripting Help

Hi im having problems with platforms, im just creating a simple looking game, but i can't manage to keep the sprite on top of the floor when pressing the jumping key.
when [space] key pressed
forever
if [not(color [] is touching[])]
switch to costume [jumping 3]
change y by [-5]
end
end

Offline

 

#6 2012-04-16 12:59:12

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: More Scripting Help

Rocket-Moon wrote:

Hi im having problems with platforms, im just creating a simple looking game, but i can't manage to keep the sprite on top of the floor when pressing the jumping key.
when [space] key pressed
forever
if [not(color [] is touching[])]
switch to costume [jumping 3]
change y by [-5]
end
end

Stop posting the same post in loads of threads, Make a new one.

Offline

 

#7 2012-04-16 14:22:24

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: More Scripting Help

Rocket-Moon wrote:

Hi im having problems with platforms, im just creating a simple looking game, but i can't manage to keep the sprite on top of the floor when pressing the jumping key.

when [space] key pressed
forever
if [not(color [] is touching[])]
switch to costume [jumping 3]
change y by [-5]
end
end
 

Scratchblocks fixed


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

Board footer