How to code monster loot drops

  • 19 favourites


3,296 visits, 5,127 views



This tutorial hasn't been translated.


This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

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.


  • Order by
Want to leave a comment? Login or Register an account!