Discuss Scratch

nmcscratch1
Scratcher
8 posts

Top-Down Movement Graphics

Hello, everyone. Here is my issue.

I'm working on a top-down boss fight. I want the player to visibly move diagonally, but they won't turn in every direction - just some. The script I'm currently using can be found here (scripts don't feel like working today): https://scratch.mit.edu/projects/202978822/

So, as you can see, the character doesn't feel like turning in every direction if two arrow buttons are held down. Does anybody know of a way to make them turn diagonally when moving diagonally? Fewer blocks, the better. Thanks!

-nmcscratch1
Presentation657
Scratcher
37 posts

Top-Down Movement Graphics

I think that the problem is that your green flags are contradicting each other, since only one green flag start can run at a time. Otherwise, I think the problem is just a glitch with the character. Try to remake the character if possible, and see if there is a difference.

Last edited by Presentation657 (Feb. 8, 2018 21:38:59)

nmcscratch1
Scratcher
8 posts

Top-Down Movement Graphics

If you mean creating the character again, the player used in the actual game has the same scripting, but the directions it can face are different. Is there something that determines which ways it can and cannot face?
lnkulumo
Scratcher
25 posts

Top-Down Movement Graphics

Presentation657 wrote:

I think that the problem is that your green flags are contradicting each other, since only one green flag start can run at a time. Otherwise, I think the problem is just a glitch with the character. Try to remake the character if possible, and see if there is a difference.
Multiple green flags can run at once.

asivi
Scratcher
1000+ posts

Top-Down Movement Graphics

lnkulumo wrote:

Presentation657 wrote:

I think that the problem is that your green flags are contradicting each other, since only one green flag start can run at a time. Otherwise, I think the problem is just a glitch with the character. Try to remake the character if possible, and see if there is a difference.
Multiple green flags can run at once.

Not really.
ParadoxScratching
Scratcher
100+ posts

Top-Down Movement Graphics

Wait… do you mean VERTICALLY?

Did I help? If so, consider following me!

Forums not helping out your scripts? Want me to answer your questions in particular? Put your projects you have a question of in this studio! I would try my best to answer you. I care more about understanding the problem than knowing how to fix the problem.
https://scratch.mit.edu/studios/4636701/

Powered by DjangoBB

Standard | Mobile