Charactes from BG to FG

Get help using Construct 2

Post » Mon Oct 28, 2013 3:47 am

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
B
9
S
2
Posts: 19
Reputation: 850

Post » Mon Oct 28, 2013 4:16 am

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.    
Image
B
26
S
4
G
3
Posts: 147
Reputation: 4,875

Post » Mon Oct 28, 2013 7:55 am

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.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Mon Oct 28, 2013 8:05 pm

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!
B
9
S
2
Posts: 19
Reputation: 850


Return to How do I....?

Who is online

Users browsing this forum: DolyGamesCosmos and 17 guests