Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » need a bit of help on this
- pieprince1
-
Scratcher
9 posts
need a bit of help on this
i am making an undertale battle engine, but i have NO idea how i can add invincibility frames. i have literally been trying for weeks.
- Studio42
-
Scratcher
500+ posts
need a bit of help on this
I do what invincibility frames are but I did a quick Google search and it is the amount off time you cant be harmed after being attacked right? If so, do this
forever
wait until <guy gets hit>
Do damage and such
wait (invicibility frames) secs
end
- pieprince1
-
Scratcher
9 posts
need a bit of help on this
I do what invincibility frames are but I did a quick Google search and it is the amount off time you cant be harmed after being attacked right? If so, do thisyeah but in undertale invincibility frames include the guy disappearing and reappearing until the invincibility frames endforever
wait until <guy gets hit>
Do damage and such
wait (invicibility frames) secs
end
- deck26
-
Scratcher
1000+ posts
need a bit of help on this
So presumably add hide and show blocks, one each side of the code where it is invincible.I do what invincibility frames are but I did a quick Google search and it is the amount off time you cant be harmed after being attacked right? If so, do thisyeah but in undertale invincibility frames include the guy disappearing and reappearing until the invincibility frames endforever
wait until <guy gets hit>
Do damage and such
wait (invicibility frames) secs
end
- pieprince1
-
Scratcher
9 posts
need a bit of help on this
yeah but then it lags, i tried that method just an fyiSo presumably add hide and show blocks, one each side of the code where it is invincible.I do what invincibility frames are but I did a quick Google search and it is the amount off time you cant be harmed after being attacked right? If so, do thisyeah but in undertale invincibility frames include the guy disappearing and reappearing until the invincibility frames endforever
wait until <guy gets hit>
Do damage and such
wait (invicibility frames) secs
end
- deck26
-
Scratcher
1000+ posts
need a bit of help on this
So you need to share the project so we can try to help you fix that.yeah but then it lags, i tried that method just an fyiSo presumably add hide and show blocks, one each side of the code where it is invincible.I do what invincibility frames are but I did a quick Google search and it is the amount off time you cant be harmed after being attacked right? If so, do thisyeah but in undertale invincibility frames include the guy disappearing and reappearing until the invincibility frames endforever
wait until <guy gets hit>
Do damage and such
wait (invicibility frames) secs
end
- pieprince1
-
Scratcher
9 posts
need a bit of help on this
i did share itSo you need to share the project so we can try to help you fix that.yeah but then it lags, i tried that method just an fyiSo presumably add hide and show blocks, one each side of the code where it is invincible.I do what invincibility frames are but I did a quick Google search and it is the amount off time you cant be harmed after being attacked right? If so, do thisyeah but in undertale invincibility frames include the guy disappearing and reappearing until the invincibility frames endforever
wait until <guy gets hit>
Do damage and such
wait (invicibility frames) secs
end
- Discussion Forums
- » Help with Scripts
-
» need a bit of help on this