Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » My game
- Znitrutcher
- Scratcher
62 posts
My game
My game, Mini Galdiators, is extremely laggy and bugful, and here is what im trying to achieve.
When the blue and red swords hit each other, they parry and both move back few steps. However, pnly one is being knocked back at times.
When the swords of either color touch the black border, the hit one dies. However, none of those function properly, help?
When the blue and red swords hit each other, they parry and both move back few steps. However, pnly one is being knocked back at times.
When the swords of either color touch the black border, the hit one dies. However, none of those function properly, help?
- SuperFlower008
- Scratcher
23 posts
My game
1. Um… What do you mean by “parry”? And, can you give me an example of what times are they knocked back? My game, Mini Galdiators, is extremely laggy and bugful, and here is what im trying to achieve.
When the blue and red swords hit each other, they parry and both move back few steps. However, pnly one is being knocked back at times.
When the swords of either color touch the black border, the hit one dies. However, none of those function properly, help?
2. Ok, here is how you do the second bit:
The red sword:
when green flag clicked
forever
if <color [#ff0000] is touching [#000000] ?> then
stop [everything]
end
end
OR
when green flag clicked
forever
if <color [#ff0000] is touching [#000000] ?> then
broadcast [(Your brodcast name here)]
end
end
when I receive [(Your brodcast name here)]
Whatever you want to happen when the red sword dies
The blue sword:
when green flag clicked
forever
if <color [#0011ff] is touching [#000000] ?> then
stop [everything]
end
end
OR
when green flag clicked
forever
if <color [#0011ff] is touching [#000000] ?> then
broadcast [(Your brodcast name here)]
end
end
when I receive [(Your brodcast name here)]
Whatever you want to happen when the blue sword dies
If you need anymore help, feel free to ask! Also, if you want to tell me what script is not working, show me an example of it!
- Discussion Forums
- » Help with Scripts
- » My game