Scratch blocks - mouse y
In this video we are going to learn how to use "mouse y" Scratch block.
This block is one of the Sensing blocks, and it gives you information on value of mouse y coordinate on Stage in real time.
So, this block is very very similar to the one which we have learned in previous lesson - "mouse x" Scratch block.
The only difference is that this one shows you "y" coordinate and previous one showed you "x" coordinate.
But the real power of those blocks is when you combine them and use them both at once, which is the most often case scenario.
And that is what we are going to do in this video.
We are going to combine those 2 blocks with "and" Scratch block and make some kind of interesting game.
Ok, maybe it's not a game, but it's a good start.
We will make real time interactive check of where your mouse cursor is.
But you can keep on working on that code and upgrade it and turn it into something more if you have time.
For example some kind of radar, or watch tower which will inform your base where the enemies are coming from.
Keep on learning, keep on Scratching !!!
Other Videos By Knowledge For All
2020-02-14 | Humble Bundle - Best of Polygon Game Dev Bundle |
2020-01-12 | How to download and install offline version of Scratch |
2019-12-18 | Scratch blocks - go forward/backward ... layers |
2019-12-17 | Scratch blocks - delete this clone |
2019-12-16 | Scratch blocks - when I start as a clone |
2019-12-16 | Scratch blocks - create clone of ... |
2019-12-16 | Scratch blocks - repeat until ... |
2019-12-16 | Scratch blocks - size |
2019-12-13 | Scratch blocks - change size by ... |
2019-12-13 | Scratch blocks - direction |
2019-12-12 | Scratch blocks - mouse y |
2019-12-12 | Scratch blocks - mouse x |
2019-12-11 | Scratch blocks - change variable ... by ... |
2019-12-10 | Scratch blocks - set variable ... to ... |
2019-12-10 | Scratch blocks - show variable ... |
2019-12-10 | Scratch blocks - hide variable ... |
2019-12-10 | Scratch blocks - round ... |
2019-12-04 | Scratch blocks - reset timer |
2019-12-04 | Scratch blocks - when loudness/timer greater then ... |
2019-12-04 | Scratch blocks - timer |
2019-12-04 | Scratch blocks - my variable |