4 scripts that can help in almost any game. I found that having some simple functions like these made using random() way easier.

They are quite simple to use but just in case, here are some examples:

Create an enemy every 2 seconds, give or take a bit.

// in step event
if random_seconds(2){

10 percent chance of dropping a power up object

if random_percent(10){
    //drop power-up

Get a random name of the ai player

var ai_name = random_name();

target and destroy 1 random enemy

target_enemy = random_instance(enemy_obj);
with target_enemy{instance_destroy();}

If you have any ideas for more random functions that i could add to this pack, please post it on the forum here:

End User Licence Agreement (EULA).

Version 1.0.0. Published August 25, 2014

Created with GameMaker: Studio v1.4.1398

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Anonymous 17 December 2017


Anonymous 16 December 2017



Anonymous 17 July 2017


Anonymous 12 May 2017

Package contents

Total size 2.48 KB

What is the issue?

Back to Top