create obj at variable.x? HOW?!

For questions about using Classic.

Post » Sat Jan 05, 2013 9:37 pm

Hi, im an old user of construct.
I cant remember how to make the program create an object on x,y position where x should be a variable.
for example i have a variable named HOR. and its value is 100
I want to create a sprite object on position HOR, 0
And no matter how i write HOR it doesnt work.
I tried "HOR" i tried HOR.x i tried (HOR)

WHAT COULD IT BE? It is like the simplest thing and i still forgot it.
i just wasted an hour trying to do it and i am pissed enough to brake tables. can someone PLEASE HELP ME? how do i type the variable name so it gets accepted in the create an object?
B
1
Posts: 4
Reputation: 233

Post » Sat Jan 05, 2013 9:43 pm

http://imgur.com/l7PLl
see what i mean?
its not an object? how do i write HOR properly so it gets accepted as an x value
B
1
Posts: 4
Reputation: 233

Post » Sat Jan 05, 2013 9:46 pm

What type of variable is it? If it's a global variable, write: global('HOR')Arima2013-01-05 21:47:24
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Sat Jan 05, 2013 9:51 pm

Thank you for coming to my aid!
http://imgur.com/fCDOt
I tried now its saying parameter of global isnt string... -_-
Yes, i am using a global variable which value is 100 right now, to try to place a sprite on x,y where x is the variable, so it should be placed on 100,0

and its not working again, im raging so hard!
The reason im doing it its because i want to build an isometric map with tiny pieces changing the position with HOR
B
1
Posts: 4
Reputation: 233

Post » Sat Jan 05, 2013 9:53 pm

o my god finally! THANK YOU SO MUCH!
the problem was i was using " instead of '
now it works perfectly!
as steve jobs would say it just WERKS!

I am the developer of Invidia 422AC and i just want to say im coming back to build a better simcity type of game with construct 1
B
1
Posts: 4
Reputation: 233


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest