Create Object on its Imagepoint

Get help using Construct 2

Post » Thu Feb 07, 2013 5:59 pm

Hi guys

I'm trying to Create Object and place it on certain coordinates, based on its Imagepoint, not on the Origin.

In other words i want to place object, and its Imagepoint to be at certain coordinates.

Any idea how i can do it?


Sry if that has been discussed but couldnt find anything in the forum.
B
12
S
3
G
1
Posts: 120
Reputation: 1,829

Post » Thu Feb 07, 2013 9:19 pm

Yes!

Create the object at the point you want its image point to be. Now rotate your object 180 degrees and set its position to object.ImagePointX(number) and object.ImagePointY(number). Now rotate it another 180 degrees back to normal. Now its image point is at the exact coordinate where you originally created the object.

If you're going to be creating more than one of this kind of object it'll be important that you don't muck up the positions of your other objects while doing this, in that case move rotations and position setting to an "object - on created" event so that the event system is only picking the object you just created.Phyvo2013-02-07 22:16:38
B
6
S
1
Posts: 40
Reputation: 917

Post » Thu Feb 07, 2013 9:23 pm

Lol thats hell of a trick :)
Thanks alot!!
B
12
S
3
G
1
Posts: 120
Reputation: 1,829


Return to How do I....?

Who is online

Users browsing this forum: alextro, MarkStockley and 0 guests