Discuss Scratch

-jellicookie-
Scratcher
21 posts

Need help with some code for a game.

Hey, first off, here's my game - https://scratch.mit.edu/projects/559089986

So, I need help with quite a lot of code. I'm not new to coding, but haven't gone past my comfort zone, so I don't really know how to do these things; can anyone help? All of the things that I need help with are in the notes and credits of the project. It's really long though, so it's ok if you don't have the patience XD

Thanks in advance everyone!
MookyE
Scratcher
100+ posts

Need help with some code for a game.

You could improve enemy health by making a ‘only for this sprite’ variable which can be different for each clone
So like you could set it to 3, and when an enemy is attacked, that enemy changes the variable by -1 (make sure it sets it to 3 when it starts as clone)
For the arrow hitting 1 person i would make the enemy take the damage, and if u know how long it takes for the damage to work, you can make the arrow delete itself right after with the right timing
Some other things I’d recommend with weapons are: arrow does 2 damage, spear does 3, sword does 5, and sword staying in the position it swings to. Or maybe it could only swing down because at the moment it’s kinda confusing
Don’t think I can explain any of the other things through text

Last edited by MookyE (Aug. 12, 2021 23:14:59)

-jellicookie-
Scratcher
21 posts

Need help with some code for a game.

Thank you! That helped a lot and I will try to add it to my project soon!
Nezon
Scratcher
1000+ posts

Need help with some code for a game.

You should try griffpatch's scrolling rpg tutorial. It could help you.

Powered by DjangoBB