What is the difference between higher and more?(like higher Ycord less scale and moreYcord less scale)
exactly but i dont know how to do thishigher on the screen = farther away, so they appear smaller and slower
as they come down the screen (increase the Y-coord) they get bigger and faster to give the illusion of getting closer ??
if vspeed>0{image_xscale+=0.10
image_yscale+=0.10}
if vspeed>0{image_xscale-=0.10
image_yscale-=0.10}
exactly but i dont know how to do this
the player i just put that if the "W key" is beign hold decrease the scale
and if "S key" is beign hold increase the scale
but i cant do
that with the enemies since they spawn in a random y positionGML:if vspeed>0{image_xscale+=0.10 image_yscale+=0.10} if vspeed>0{image_xscale-=0.10 image_yscale-=0.10}
image_scale = y / room_height;
oh it worked thx!Just read what you wrote in English in the OP: "set enemies scale according to their Y cord." Just do that.
Something like:
Programming is translation. Take what is in your head and translate it into your natural language (english?) as precisely as possible, and then accurately translate that into a programming language, in this case GML. Do not skip any step: think of a solution, describe it naturally, translate into a software solution.GML:image_scale = y / room_height;