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
169
S
50
G
169
Posts: 8,286
Reputation: 108,216

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: brunopalermo, Google [Bot], Nicolas951, tarek2 and 12 guests