How to code monster loot drops


1,254 visits, 2,641 views

I've written a tutorial for Gamedev Tutsplus.

Here is the teaser for the article :

In RPGs, platformers, and many other types of game, one common mechanic is for enemies to drop items the moment they are killed. In this tutorial, you'll learn a few ways to implement those drops, whatever your coding language or tool is.

All of the examples that illustrate the article are made in Construct2 and the capx files are commented and can be downloaded from the article.

(The "Download attachment" button on the right side of the article)

Notice it is aimed at intermediate users, but hopefully, beginners can find it useful to a certain extent. Nevertheless it's not a "follow the recipe" kind of article.

I hope you can find this article and the examples useful.