ScratchData LogoScratchData
Back to gtoal's profile

Local Variables in recursive procedures

GTgtoal•Created October 4, 2014
Local Variables in recursive procedures
11
7
166 views
View on Scratch

Instructions

Have you ever wanted to use local variables inside a Scratch function or procedure? Well, here's a easy way to do that - look inside the code for an example. You just push any variables on to a stack at the start of the procedure and restore them at every place where you exit from it.

Project Details

Project ID28493818
CreatedOctober 4, 2014
Last ModifiedJune 8, 2016
SharedOctober 4, 2014
Visibilityvisible
CommentsAllowed