minimap example for coppercube
A downloadable coppercube asset
Download NowName your own price
Very easy to use mini map example.
how to use
in ccbRegisterOnFrameEvent call:
minimap_background(image)
Draw minimap background
- image - way to image file of minimap texture
minimap_player(size,image)
Draw sprite in middle of minimap
- size - size of image on minimap
- image - way to image file of player sprite
minimap_add(size,node_name,image)
Draw sprite relative to added object position on map
- size - size of image on minimap
- node_name - name of object to projected on mini map
- image - way to image file of object sprite
in map code setup:
- mapPlayer - name of player node
- x_percent - x position of minimap in percent
- y_percent - y position of minimap in percent
- width_percent - width of minimap in percent
- height_percent - height of minimap in percent
- map_zoom - zoom in minimap (higher value mean closer)
Download
Download NowName your own price
Click download now to get access to the following files:
MiniMap.zip 1.8 MB
Leave a comment
Log in with itch.io to leave a comment.