ScratchData LogoScratchData
Back to JAM58_Test's profile

More Advanced Projectile Code

JAJAM58_Test•Created March 27, 2025
More Advanced Projectile Code
5
3
57 views
View on Scratch

Instructions

Better version of my projectile code system Press space to spawn either a "shell" or a "fireball" Press D to show or hide debug variables Goomba will follow the mouse pointer - try making it collide with the projectiles This is a more advanced version of my original projectile code example, and the version that I have been using since Super Mario Scratched Revamped. Instead of using two variables to keep track of the position, it uses a list to hold all the entities' data. Pros of this system versus the other one: - Lets you have more than one projectile on screen - Lets you have different projectile types (for example, coins can be collected when touching koopa shells but not fireballs) Cons: - More complicated to add - Can possibly cause lag This one is definitely the better one to add to your projects if you know what you're doing - but if you're working with a simpler engine, use the original. It's way easier to work with.

Project Details

Project ID1153241662
CreatedMarch 27, 2025
Last ModifiedMay 14, 2025
SharedMarch 27, 2025
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root