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 you all i am currently making a top down racing game.the enemies car is a sprite(rectangle) that i randomly create above the viewport and they come down toward the player.i have some other sprite objects carGreen carPurple and carRed from which i wish to create and set their position to one of the created rectangles.So that ill have an enemy rectangle created along side with a carGreen sprite or carRed.All of this the game must randomly generate and attach ...How do i achieve this?
Would using frames or animations work for this?
Just create the enemy sprite and pin it to the rectangle..
On creation set either the animation or frame to choose()
Develop games in your browser. Powerful, performant & highly capable.
LittleStain i will try but it means i shouldnt have seperated all the enemies into different sprites with their own animations...is there a way to do this with families? as i intend for the main player t be able to control those enemies when its main car dies
LittleStain finaly i went along with your solution i bundled all the enemy animation together and used your algorithm to generate them randomly thanks bro