[Gambas-user] Sprite Over Map.

Benoit Minisini gambas at ...2...
Wed Aug 27 21:15:14 CEST 2003


Le Mercredi 27 Août 2003 11:40, Devilyn a écrit :
> Ok so now that I know how to make a board/map.
> What do I have to do to put up a sprite such as a
> man/char who represents a party..A sprite/pic of a man
> who walks over the tile based board/background?
> A bit of code on how to do this would be of great
> help..I can convert all my graphics into .png if
> needed.
> P.S. No need for lots of speed my RPG game is going to
> be all turn based.... For example Player clicks to
> move.. then computer makes move...then player again..
> Perfect type of game made in gambas.
>    Devilyn
>

If your player picture is a png with transparent pixels, then you just have to 
draw it on the board.

DIM hPlayer AS Picture

hPlayer = Picture["player.png"]
...
' Draw the tiles
...
Draw.Picture(hPlayer, X, Y)

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list