Changing object's main image points?

Get help using Construct 2

Post » Mon Apr 14, 2014 7:18 am

Hi,

I know you can choose an image point of the object ''b'' while moving ''a'' to ''b''.
But is there a way to actually change the origin point of let's say the player dynamically? Choose between several image points.

Thanks!
B
12
S
4
G
1
Posts: 241
Reputation: 1,699

Post » Mon Apr 14, 2014 7:43 pm

nup, there is not. but you could use the X.y coordinates of the player, since they always refer to image point 0. the way to do this would be like this:

player.x, player.y = default 0
player.x+10, player.Y+10 = dynamically changed on runtime.
you could even set this to something like: player.X+variable, player.Y+variable.

anyway, it's rather simple actually =P
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Mon Apr 14, 2014 10:55 pm

Sargas wrote:nup, there is not. but you could use the X.y coordinates of the player, since they always refer to image point 0. the way to do this would be like this:

player.x, player.y = default 0
player.x+10, player.Y+10 = dynamically changed on runtime.
you could even set this to something like: player.X+variable, player.Y+variable.

anyway, it's rather simple actually =P



Oh nice idea. thanks
B
12
S
4
G
1
Posts: 241
Reputation: 1,699


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 31 guests