Table of Contents

point towards ()

Description

The block points its sprite towards the mouse-pointer or another sprite depending on its costume center; this changes the sprite’s direction and rotates the sprite.

Example

The example demonstrates how to make the sprite follow the mouse.

Script

Output

Read More
In this example, we are making a rocket shoot bullets to the mouse pointer when the space key is pressed. 

In this example, we are making a rocket shoot bullets to the mouse pointer when the space key is pressed.

Rocket Script

Bullet Script

Output

Read More
All articles loaded
No more articles to load