Charactes from BG to FG

0 favourites
  • 4 posts
  • Hello everyone, long time no see in this section. Hopefully, some of you might be able to help me (I really wish you could >_<).

    I am in the process of making a platformer game, and I want to include a feature where the enemy comes from the background to the foreground and viceversa. In other words, (because probably I used the wrong terms), I wish to implement the feature where enemies can go from the same plane as the player to a second one in the background and so forth, as a way of the enemy to shelter from any damage from the player.

    Do any of you here, knows how to do that in C2?

    Thank you anyway <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • hi, I did something like this before...

    but really all I did was use a every tick that kept the image in the devised area while the image got smaller.   so it appeared to be moving away.   then you could also change layers so that the image goes behind a tree?    you can use a booleen Var,   that when it is active the sprite width -1 hight -1 until the size you want is achieved.

    hope this helps.

  • How about storing the enemy details in an array and destroy the image and pull it out and create when needed again ?

    Or

    You could have a special object in the screen (hidden plane / transparent dot), with a load of local variables which store enemy details, hiding them from plane sight.

    That or either move the enemy out of screen ...

    At least thats how I'd try and approach it.

  • Mmmm, I like the idea of storing the stats/details of the enemy in an array or var.

    So there isn't a way to play with the layers or an actual way to push the enemy or character to the BG/FG.

    I will need to rethink that feature, thank you guys!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)