Various questions about platform movement ...

Get help using Construct 2

Post » Mon Mar 10, 2014 11:08 pm

I am working at a platform game and I would like to know the best methods to do the following:

1. Enemies will have different sizes. How can I stomp/squeeze (Mario style) the small ones (smaller then player's height) and stay above the big ones (bigger then player's height) ?
Following this tutorial I learned how to stomp the smaller enemies and not stomp the bigger ones. How can I make the player to stay above bigger ones ? I am thinking about the Solid behavior, but I would like make the enemies overlap each other (to be able to create crowd/herds of enemies).

2. The player will have 2 behaviors (platform and bullet) with different sprite sizes. Witch method is better or more recommended ?
Method 1:
- Create only one player
- Assign it the platform and bullet behaviors
- Only one behavior being active at time, switch the behaviors (and the sprites/animation) when needed
Method 2:
- Create 2 players
- Assign a behavior to each player
- Switch between players when needed (destroy the current player and create the other one)
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Mon Mar 10, 2014 11:51 pm

What do you need bullet for on the main character? Dashing? You can do this without bullet. For larger enemies you can make sure your character jumps high enough to land on top. Unless I am misunderstanding something on this one.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Tue Mar 11, 2014 12:16 am

@BluePhaze

1. The same enemy can be found in different sizes.
- If the player jumps on a small enemy, the player squeeze it (like Mario and goombas)
- if the player jumps on a big enemy, the players remains/stays on top of it (the enemy is not killed).

2. The gameplay will be 2 in 1: normal platforming (like Mario) and a PowerUp that will transform the player into a ball-like shape (here I need the bullet behavior for the bounce)
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Tue Mar 11, 2014 8:22 pm

Anyone ?
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Mon Mar 17, 2014 7:45 pm

For the 2nd question, I decided to go with 2 players since I will be able to customize better each behavior ;)

But what about my 1st question ?
The same enemy can be found in different sizes.
- If the player jumps on a small enemy, the player squeeze it (like Mario and goombas)
- if the player jumps on a big enemy, the players remains/stays on top of it (the enemy is not killed).
B
49
S
15
G
6
Posts: 534
Reputation: 7,195


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Elliott, Yahoo [Bot] and 68 guests