Discuss Scratch

JustRyanTheGamer
Scratcher
6 posts

Creating a sword game

so im basically trying to make a game where you swing your sword and fight waves of enemies, but i need to make a swing animation for the sword that goes down if you press space once, and goes back up if you press it again, i also need it to go back up if you press space and wait. I know its a lot but if someone can help me it'd be greatly appreciated. thx
ianmccarthyschoolacc
Scratcher
44 posts

Creating a sword game

i dont know how, but heres a tutorial

https://www.youtube.com/watch?v=d1g1SRksKdw
JustRyanTheGamer
Scratcher
6 posts

Creating a sword game

ianmccarthyschoolacc wrote:

i dont know how, but heres a tutorial

thanks but i already watched that 12 times
ianmccarthyschoolacc
Scratcher
44 posts

Creating a sword game

oh sorry lol
Jlerpy
Scratcher
1000+ posts

Creating a sword game

That does seem like a really solid tutorial. What further help do you need?
JustRyanTheGamer
Scratcher
6 posts

Creating a sword game

Jlerpy wrote:

That does seem like a really solid tutorial. What further help do you need?
See, the tutorial is more of a devlog and doesn't show necessary code.
cookieclickerer33
Scratcher
1000+ posts

Creating a sword game

JustRyanTheGamer wrote:

Jlerpy wrote:

That does seem like a really solid tutorial. What further help do you need?
See, the tutorial is more of a devlog and doesn't show necessary code.
He explains the way things work, no code showing needed
Scratchomierer
Scratcher
21 posts

Creating a sword game

when green flag clicked
forever
Set rotation on 90
set [123] to [0]
repeat until <key [...] pressed?>

end
set [123] to [1]
repeat (...)
turn cw (...) degrees
end
set [123] to [0]
repeat until <key [...] pressed?>

end
end

Last edited by Scratchomierer (Oct. 5, 2023 19:42:53)

maxireversecard
Scratcher
1 post

Creating a sword game

I have a game where there's a damage mechanic and weapons but every time I attack something it makes me take damage. how do I fix it?
Jlerpy
Scratcher
1000+ posts

Creating a sword game

maxireversecard wrote:

I have a game where there's a damage mechanic and weapons but every time I attack something it makes me take damage. how do I fix it?

1. Don't necropost; start your own thread.
2. I'm guessing you've got the player sprite set to take damage if it touches enemy sprites, and you've included the weapons as part of the player sprite.

Powered by DjangoBB