Minimap(Beginner)

1
  • 7 favourites

Index

Attached Files

The following files have been attached to this tutorial:

.capx

Stats

4,325 visits, 8,032 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Hello. I'll tell you how to make a very simple mini card for your game.

First, download the sprites.(Sprite icons player will be the same)

start

Point at the minimap set:

x=0; y=0

And do a little white box that will mean our ship.

Ship on layer "scena", minimap on the layer "int"

In the layer "int" set parallax value to 0.

Go to the tab events.

Do the first event.

    Event: system-> every tick.
         action:
                    minimap-> set width; volue= LayoutWidth/20
                    minimap-> set height; volue= LayoutHeight/20

Divide by 20 means that the sprite will minimap 20 times smaller than our level (you can put its value).

Next to this event to add actions:

    action:
        ship_icon->set postion
               value x= minimap.X+ship.X/20
               value y= minimap.y+ship.y/20

Divide by 20 for the same reason.

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!