all Enemy images dependent on single enemy

Get help using Construct 2

Post » Wed Jun 04, 2014 10:39 am

I'm currently playing around with a stealth platformer system and I've come up with an annoyance where the images for all the enemy sprites appear to be dependent on a single on screen enemy's actions rather than each specific enemy.

I've currently got it set that if an enemy faces left, then its image and its line of sight should also face left and if it turns around, the image and its line of sight should be mirrored. The line of sight image works fine, but even though it follows the same function all enemy images only mirror based on a one enemy's actions and don't follow their own instance (meaning it looks like some enemies are walking backwards).

Not sure what I've missed. Any advice would be appreciated (game attached).
You do not have the required permissions to view the files attached to this post.
Posts: 5
Reputation: 185

Post » Wed Jun 04, 2014 12:59 pm

Hey Shariku
mmm if you look carefully at your enemy object in the Project tree...(the yellow Box platform controller) and check its properties tab,
in the platformer behavior, you have still got the enemy default controls set to "yes'

if you have it this way..whenever the player presses jump the enemies will jump as well because Default are the same for all objects unless its turned off

Change Uses Default Controls to "No" and then it should fix the enemy jumping issue..

as for other issues...
its good practice to place any "on start of layout " events at the top of the it will always be the first thing that processes and is usually what you want ...

if you need more help ..let me know...but it should fix the jumping issue for starters
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 will save your life.:)
Posts: 318
Reputation: 7,710

Post » Wed Jun 04, 2014 2:05 pm

Hi mystazsea,

Thanks for that. Had WASD controls set separately so i didn't even notice.

I've sorted the image issue out separately, so all good there too.
Posts: 5
Reputation: 185

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests