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

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Total size 2.48 KB

What is the issue?

Back to Top