How do I get objects to track off-screen objects?

Get help using Construct 2

Post » Tue Aug 01, 2017 2:09 pm

The enemies in the game are set to come after a target, but will walk towards the character while looking in the direction of the target they are suppose to target. Either I got something wrong in the code, or they won't target something off-screen but still look in it's general direction?

Also, when the game starts, they won't move at all until they are on screen, which then the enemies activate. I guess this is to save memory, but anyway to force them to activate without being on screen?
B
20
S
8
G
1
Posts: 59
Reputation: 2,159

Post » Tue Aug 01, 2017 3:33 pm

You got something wrong in the code. You can target something off screen. Objects can move while they are off screen. You may have specified that something has to be on screen, which is an event condition.
B
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

Post » Tue Aug 01, 2017 4:02 pm

Yeah, it was my mistake, I managed to fix it. Thanks for the reply.
B
20
S
8
G
1
Posts: 59
Reputation: 2,159


Return to How do I....?

Who is online

Users browsing this forum: MadSpy, tarek2, Yahoo [Bot] and 55 guests