Minimap(Beginner)

Index

Attached Files

The following files have been attached to this tutorial:

.capx

Stats

1,733 visits, 3,676 views

Translations

This tutorial hasn't been translated.

Tools

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!