Discuss Scratch

Oofio1018
Scratcher
8 posts

2-Player Pac-Man game winning screen.

Recently I have been working on a 2-Player Pac-man game where the old pac-man fights the new one, It is almost completely done, other than the winning screen. For some reason it is only possible for the retro pac-man to win. Can anyone help me with this?

Edit: Here is a link for the game: https://scratch.mit.edu/projects/282325745/

Last edited by Oofio1018 (March 19, 2019 14:47:36)

codeman1044
Scratcher
1000+ posts

2-Player Pac-Man game winning screen.

I can't quite figure it out, but I can tell that your retro pacman has a script favor over your modern one. The modern one seems to not be able to actually run the color script. I would recommend doing a script that detects your x/y position and direction, so if your y<this y and this dir=this then modern wins, ect ect
Oofio1018
Scratcher
8 posts

2-Player Pac-Man game winning screen.

I do not fully understand, how would detecting where modern pac-man is determine how he wins? I want it so that when he touches retro pac-man from behind, then he wins.
deck26
Scratcher
1000+ posts

2-Player Pac-Man game winning screen.

I think the red bits on the retro pacman are too small so the colour touching colour block isn't seeing them. If you increase the size of the pac-man or the width of the red bits it detects ok.
Oofio1018
Scratcher
8 posts

2-Player Pac-Man game winning screen.

deck26 wrote:

I think the red bits on the retro pacman are too small so the colour touching colour block isn't seeing them. If you increase the size of the pac-man or the width of the red bits it detects ok.

Thanks! that worked, now modern pac-man can win my game is perfect now! All I need to do are a couple touch-ups!

Powered by DjangoBB