ScratchData LogoScratchData
Back to JAM58_Test's profile

Example Projectile Code

JAJAM58_Test•Created December 29, 2024
Example Projectile Code
7
6
42 views
View on Scratch

Instructions

Better version: https://scratch.mit.edu/projects/1153241662/ For @ShootingMeteor8471 Press space to spawn a "shell" Press D to show or hide debug variables "Goomba" follows the mouse pointer - try making it collide with the "shell" Eay way to code a projectile system for something like koopa shells - it uses variables to store the x/y positions, and the other objects compare their own coordinates with the shells'. If they're close enough, then they've collided. This system actually allows you to keep the projectiles in the same sprite as the other entities Super Mario For Scratch 4 was the first game I know that used this system; this is a modified version of that.

Project Details

Project ID1115182039
CreatedDecember 29, 2024
Last ModifiedApril 16, 2025
SharedJanuary 15, 2025
Visibilityvisible
CommentsAllowed