Adding Images (PLS HELP)

Monkey Forums/Monkey Beginners/Adding Images (PLS HELP)

CanisLupus(Posted April) [#1]
I have been following this tutorial: http://monkeygameprogramming.blogspot.co.uk/2015/01/monkey-x-2d-scrolling-platformer-with.html

Can someone please tell me how to change the grey squares into a brick image?


therevills(Posted April) [#2]
You need to load the image and then change the DrawRect into DrawImage commands.

Quick example of loading and displaying images:


The "player.png" file needs to be in a folder called <yourmainfile>.data, eg my main file was called imagetest so the folder needs to be called "imagetest.data".