Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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
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.
Develop games in your browser. Powerful, performant & highly capable.
Nevermind, I found it. Thank you plinkie for your help