Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
(1 edit)

thank you, that actually helps a lot. There's still loads I don't know in GML. This can definitely be used to make more complex enemy attacks!

(Edit) That helps so much. Before I had like 50 different bullet objects hahah, I know right, but now I can cut that down to like 5, cause I can set the speed and sprite_index and so on. 

(1 edit)

Yay i helped! :D

(EDIT) So i was thinking should i say i to you or is it gonna be a bunch of useless knowledge. And i decided to say it to you because it can be usefull in the future (i have no idea if you know this or not).

So if you needed for enemies to not see trough walls you can write this stack of code:

if instance_exists(o_player)  {

if collision_line(x,y,o_player.x,o_player.y,o_wall,true,false)  {  cansee = false  }

if not collision_line(x,y,o_player.x,o_player.y,o_wall,true,false)  {  cansee = true  }  }

I hope i have written everything like it should be.

Also if you dont know how to do something you can look in the instruction or improvise! Because if it aint broke - dont fix it.