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
Our educational partners
Free education resources to use in the classroom
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
I have an object with several Imagepoints and I am trying to express the imagepoint name with an variable. It doesn't seems to work.
So is it possible to set the imagepoint like this:
Set position to Object.ImagePointX("Variable"), Object.ImagePointY("Variable")
Thanks in advance guys
yes You can do that.
if it's instance variable
Set position to Object.ImagePointX(Object.variable), Object.ImagePointY(object.Variable)
or global variable
Set position to Object.ImagePointX(variable), Object.ImagePointY(Variable)
sadly with global variable didnt worked...
Ill try with instance
Develop games in your browser. Powerful, performant & highly capable.
<img src="http://dl.dropbox.com/u/34375299/Construct%202/examples/imagepoint.JPG" border="0" />
Sprite have image point called "point"
You are right.
I did the samo example and it works, even when variable is number.
Still doesnt work in my project tho. Anyways at least i know its something else.
Thanks for the help m8t