How do I make a a selected sprite move with the enemy

Get help using Construct 2

Post » Fri Jan 06, 2017 12:46 am

I am trying to figure out how to have a selection graphic constantly move with the last clicked object, but then switch to the object selected next? My trouble is in that if I want the selected graphic to move with a clicked object, it is set to constantly move with that object, and that is what makes it unable to move to another object if you click another object. Here is my .capx where it's suppose to move with enemy graphics, how should I adjust this? Also, I'm going to want the player to be able to click anywhere on the screen that isn't an object or its collision box and remove the selected graphic all together as it would in a game like Dragonage Origns or World of Warcraft.

http://www.filedropper.com/shipgameearlydraft

These are the events related to what I'm trying to do

Image
B
7
S
2
G
1
Posts: 28
Reputation: 881

Post » Mon Jan 09, 2017 8:59 pm

Try giving the targeting reticule the pin behavior and pinning it the the clicked enemy. If you pin it instead of setting it to follow a specific enemy, it should follow more precisely.
B
40
S
12
G
11
Posts: 331
Reputation: 7,752


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests