ScratchData LogoScratchData
Back to DarthPickley's profile

relational database of sprites

DADarthPickley•Created February 22, 2019
relational database of sprites
6
4
46 views
View on Scratch

Instructions

I created some scripts that support: > recursive use of temporary internal variables > relational databases for sprites (attributes are *Name, *Type, *X, *Y) > find closest object of a type > search database by name Using these scripts to do stuff with clones is tough and makes things slow, and there is no real way to tell what the ID of a clone that is touching you is... In this demonstration, I have a single sprite that clones itself - creating pellet objects and a bug object. the bug object uses the database to find which pellet is closest to it, determines its X,Y coordinates, points towards it, and moves until it is on top (And eats it). The pellet then gets removed from the database. you can hover over a pellet to see its name.

Description

https://en.wikipedia.org/wiki/Relational_database for information about relational databases. I made this in an afternoon. I was hoping to be able to use it for cool stuff but that might have to wait. The speed that this goes at is rather slow.

Project Details

Project ID288798917
CreatedFebruary 22, 2019
Last ModifiedFebruary 11, 2020
SharedFebruary 22, 2019
Visibilityvisible
CommentsAllowed