How do I test for the existence of an image point?

Get help using Construct 2

Post » Sun Oct 12, 2014 7:29 pm

Basically I'd like to do something like

Code: Select all
if (Sprite.hasImagePoint("Named Image Point"))
{
Sprite.spawnAnotherObject("at that point");
}
else
{
// do nothing
}
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730

Post » Sun Oct 12, 2014 9:06 pm

You can test what an objects variable value is.
So if you were to compare sprite variable "ihasanimagepoint" = 1, then create object at blah, blah point
Image ImageImage
B
173
S
50
G
194
Posts: 8,565
Reputation: 121,366

Post » Sun Oct 12, 2014 9:08 pm

Good idea, thanks!
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730


Return to How do I....?

Who is online

Users browsing this forum: Oscar Sanchez and 17 guests