How display Image Point without rotating it with object

Get help using Construct 2

Post » Sun Aug 20, 2017 12:27 pm

Pathfinders has energy info in Image Point. (container) But he is rotating with them.
I made Set angle to 0 degrees but it won't work.
Image
B
10
S
4
G
2
Posts: 197
Reputation: 2,382

Post » Mon Aug 21, 2017 2:40 pm

Do you have it pinned somewhere (in a forgotten) event ?
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Aug 21, 2017 3:50 pm

@99Instances2Go
it's not pinned should it?
When pathfinders going from left to right they has this energy info in the bottom. But when they go around something, image point is Turns around with them, so somethimes is on their back. Not sure if I'm clear ;-)
B
10
S
4
G
2
Posts: 197
Reputation: 2,382

Post » Mon Aug 21, 2017 4:53 pm

Set a position does not rotate things.
Could it be that you want it to rotate (compared to the world) but not relative to the enemie ?

Set its angle to enemies.angle, every tick.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Aug 21, 2017 5:43 pm

@99Instances2Go

Set its angle to enemies.angle, every tick.


Almost this, but when pathfinders rotating, numbers are rotating too and get upside down.
So containers should be always in same position because this is instead of energy bar. It shouldn't rotate, mean Image point shouldn't change position when object is rotating.

Here without "angle"
Image



Please help here if you can, because I'm stuck:
changing-range-and-rotating-tower-don-t-work_t195237
B
10
S
4
G
2
Posts: 197
Reputation: 2,382

Post » Mon Aug 21, 2017 7:55 pm

https://www.dropbox.com/s/r72m2me1cg7r4 ... .capx?dl=0

Sorry, i (again) did not understand the question.
This what you are looking for ?
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Aug 21, 2017 8:54 pm

99Instances2Go wrote:https://www.dropbox.com/s/r72m2me1cg7r47v/KeepThatThingStandingUp.capx?dl=0

Sorry, i (again) did not understand the question.
This what you are looking for ?

@99Instances2Go
Sure You understand. This is what I needed. Thanks man!
B
10
S
4
G
2
Posts: 197
Reputation: 2,382

Post » Mon Aug 21, 2017 9:06 pm

Now that i overthink it, dunno why i used Polar coordinates. So used lately to fall back to Polar, it is so simple. But, in this case, X component is always zero.

So.

Just set its Y to PathObject.Y + distance (distance from the centre that you want to follow it)
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests