How do I change a sprite origin in code?

Get help using Construct 2

Post » Fri Jul 04, 2014 8:20 pm

Is it possible to set the origin point of a sprite via code? I have a sprite that flips around relative to its container mates and managing it would be worlds easier if I could just change the origin.

I did some searching and found this post, but that was some time ago and I thought I'd check in to see if it is possible these days.

Thanks! :)
B
8
S
2
Posts: 55
Reputation: 616

Post » Fri Jul 04, 2014 9:06 pm

You can duplicate the image and change the image point in the second frame.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Fri Jul 04, 2014 9:07 pm

A0Nasser wrote:You can duplicate the image and change the image point in the second frame.


True, and that's what I'm doing for now. But I was hoping to not have to pack in extra images just to change a reference point.
B
8
S
2
Posts: 55
Reputation: 616


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk and 72 guests