Hi, I try to pin a sprite to a random spawn object. The random spawn object is spawn normally, but the sprite i want to pin at the object does not spawn. Can someone plase help me ? the global variable for Meteor i set 0
Develop games in your browser. Powerful, performant & highly capable.
There is no logic to spawn that object, only set its position? Also int(random(1,4)) does not pick 4 only 1,2 or 3
the obj_platform is spawn normally. obj_meteor is the sprite that i want to pin at obj_platform
Yes you are creating obj_platform but there is no logic to create obj_meteor so that is why it is not spawning.
Ah I see. So now how I can pin the obj_meteor at obj_platform that spawn at random Y (between 224 and 448)
Well that logic would pin it to platform at its spawn position. So you need to set the meteor to the same position as platform then pin it.
Nevermind, I found it. Thank you plinkie for your help