It surprises me that no one has suggested this yet.
But anyways, my suggestion is to have two more reporter blocks that tells you the x or y position of the current sprite at the previous step.
This could easily be embedded into a stack block, for example:
go to x: (previous x position) y: (previous y position)OR (Ignore the variable reporters, they're supposed to be motion reporters)
set [example v] to (previous y position)Of course, this can easily be accomplished using variables, like in Paddle2SeeFixIt's project:
Last edited by Seil (2012-08-02 12:15:09)
Offline
Lightnin wrote:
Nice idea! But we’re reluctant to add features that Scratchers can make using the current blocks. It might be a little tricky, but I’m pretty sure you could write a script that would do this. Try asking Scratchers for help making one in the “Help with Scripts” forum.
Nope. It can be achieved by other blocks.
Offline
Firedrake969 wrote:
Lightnin wrote:
Nice idea! But we’re reluctant to add features that Scratchers can make using the current blocks. It might be a little tricky, but I’m pretty sure you could write a script that would do this. Try asking Scratchers for help making one in the “Help with Scripts” forum.
Nope. It can be achieved by other blocks.
Thanks for the feedback, by the way.
Of course it can be achieved with other blocks, but consider this:
Can't the "change variable by [ ]" block be achieved by other blocks?
You can use the "set variable to [ ]" block to change the variable by a relative value. You can achieve this by putting together a block that says:
set [example v] to ((example) + (5))5 would be the relative value it changes by.
Offline
Wow.
I never really had the time to think about all the workarounds for a lot of the blocks. Lol.
I guess we could just stick to the workaround for previous x and y, even though it would be a lot more convenient to have its own block. I got the idea from GML (Game Maker Language. I also sometimes use Game Maker.) Of course, with procedures being an upcoming feature, we wouldn't really have to worry about having to duplicate a whole portion of a script. I really hope we can export procedures. Lol.
Offline
You can add it to your backpack.
Also, procedures are stack block only.
Offline
berberberber wrote:
Also, procedures are stack block only.
I'm not sure what you mean...
Does this mean you can't have stack blocks with arguments?
(Oh, sorry for double posting. I'm kinda new here.)
Last edited by Seil (2012-08-02 15:42:25)
Offline
What you can do is make a list of x and y positions...
Offline
No, it means that you can't have booleans or reporters.
The backpack is smething that stores the sprite/script inside, kind of like exporting. Read the blog.
Offline