Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
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
Hey, I'm new here :)
I was wondering how can I save one position coordinate (x, y) since Construct doesn't have the type Vector to variables...
Btw, english isn't my mother language, so sorry by any grammar issues.
Develop games in your browser. Powerful, performant & highly capable.
Do you mean co-ordinate in the game layout? Because you tagged array there. If you mean position of the object in the layout then you can use 2 global variables, one to save object.x and one to save object.y
I mean your second suggestion and it's exactly what I did, but I was wondering if there is a better alternative. I have to many objects that I need to save the position, so creating global variables for each X and Y coordinate of each object is a pain in the ass... In the image below I highlighted the objects of my game scene to better exemplify.
Arrays then! :D What are you using the co-ordinates for in the gameplay? For example if you go to select an object you would know its x,y at that point, do you really need to store the data?