check if a sprite has an imagepoint by name?

Get help using Construct 2

Post » Fri Mar 24, 2017 6:32 pm

I was wondering if there is a way to check for a specific image point by name. So something along the lines of check this sprite to see if there is an image point named something" assigned to it.
B
9
Posts: 2
Reputation: 381

Post » Fri Mar 24, 2017 7:55 pm

I don't think there is a way to do this.

And at this point, I don't think there should be a way since there really shouldn't be any need to check that since image points can't be modified while running.

If you would state the context of case, we might be able to help you nonetheless.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Fri Mar 24, 2017 8:31 pm

Can be done.
https://www.dropbox.com/s/6bgp8f8p4area ... .capx?dl=0

But. Be aware.
It is not a property of a sprite, as you seem to think.
The name is a property of an imagepoint, in a certain frame, in a certain animation attached to a sprite.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Mar 24, 2017 11:59 pm

Yes, I meant animation frame of a sprite. Thank you, for the help on that. That's a perfect example of what i was trying to figure out.
B
9
Posts: 2
Reputation: 381


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 4 guests