How do I Set possition to

Get help using Construct 2

Post » Thu Jun 30, 2016 5:43 pm

Hi i may be doing something wrong here.
set possition to healthbarframe.ImagePointX(1) , healthbarframe.ImagePointY(1)
But only the Y is working.
X worked for some time but now its not working.
Am I doing something wrong here ?

here is the image
http://www.evernote.com/shard/s29/sh/c09216af-7014-4169-a0e0-ad1542f4881b/53945d1cb6d63ed59cd862c2590ea3c5
B
8
S
3
G
3
Posts: 39
Reputation: 2,560

Post » Thu Jun 30, 2016 5:46 pm

its like impossible to say without more informations...
Layerscale? Imagepoint on the wrong place?

Regards
Patrick
B
19
S
7
G
1
Posts: 222
Reputation: 2,551

Post » Thu Jun 30, 2016 5:53 pm

the image point is the same and its in the same position.
It was working earlier.
https://www.dropbox.com/s/psd4psxfipwrq ... .capx?dl=0
There you can see for yourself.

key (1) spawns mobs
click red dots to spawn turrets
Last edited by otoduran on Thu Jun 30, 2016 5:55 pm, edited 1 time in total.
B
8
S
3
G
3
Posts: 39
Reputation: 2,560

Post » Thu Jun 30, 2016 5:54 pm

the position for Y is working. but X isnt working... tried making them separate like X and then Y in 2 diferent actions but still.
B
8
S
3
G
3
Posts: 39
Reputation: 2,560

Post » Thu Jun 30, 2016 10:54 pm

Bring all actions in events 4,5 and 6 to event 3.

You have a container with al those objects in. If you create an enemy, they all get created too.

Now, 'on created' is a trigger. So, all those 'on created' conditions happen kinda at the same time, and for sure not in the order that you want them to happen. Meaning: the position of the bar got set before the frame was in position.

If you bring them all in 1 'on creation', the event will trigger and set all the objects in the container to 'selected' (picked). The actions under it will run top-down, as you intended to do.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Jul 01, 2016 3:12 am

great. ill work on that tomorow =D. thx for the reply. ill let you know if it worked. THX !!!
B
8
S
3
G
3
Posts: 39
Reputation: 2,560


Return to How do I....?

Who is online

Users browsing this forum: dop2000, R0J0hound, tarek2 and 23 guests