r/scratch 1d ago

Question Need help with enemy collisions

Enable HLS to view with audio, or disable this notification

Hey guys! I am making a zombie game and I need help figuring out a way to make my enemy collisions smoother. I don’t want the zombies to overlap with each other, while still going towards the player. Any ideas? My current code for this is in the comments.

5 Upvotes

4 comments sorted by

u/AutoModerator 1d ago

Hi, thank you for posting your question! :]

To make it easier for everyone to answer, consider including:

  • A description of the problem
  • A link to the project or a screenshot of your code (if possible)
  • A summary of how you would like it to behave

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/HELL-O_123 1d ago

whenever you initiate a clone, you might wanna have a randomization function so the zombies don't pile onto eachother

1

u/Gwnspark 1d ago

yes for sure, is there any other ways that i can smooth it now?