So I'm working on my basic Platformer (my very first game in Construct 3 as I'm learning).
I'll try to explain what I did so maybe you can help me out here.
This is what I got for the Player:
I used a Box as the actual Player with the Platform behaviour
The Animated Sprite is attached to this Player Collision Box with all animations:
Idle, walk, jump, punch (attack) so far everything works great!
For the Enemy:
Platform behaviour, walks Right & Left and Mirror for the right direction when collide with the wall (solid).
For the Player Attack I made this:
- When pressing the 'SPACE' key, The player play the "Attack" animation.
- Player create a Red-Box (invisible collision, plays for 2 frames real fast).
- When the Red-Box collision with the Enemy, the Red-Box destroyed and this is where the Push Back should happen!
This is what I did in general, I used 2 ways:
- I used vector X and Y (for how far and how high the enemy will push back)
it worked PERFECT before I added movement (platform) for the enemy.
As soon as I added the Platform movement (playing with the properties, speed and acceleration) I had weird results... bad distance, mirroring and more randomness.
- I wanted to try different SIMPLE way, I added a Bullet Behaviour so it will be enabled for 0.2 seconds and Disable itself, but it wasn't act smooth as the Vector X way and also it acted weird and random the mirroring.
Considering I'm still a newbie in Construct and learning, I tried these ways but I still have much more to learn.
Now... forget about my "ways" of what I did for the push back.
What do YOU recommend for a smooth looking push back for enemy?
The most important for me is that the Enemy will push back from the opposite side of the punch (player.X)
I believe that either Vector X or Bullet (enable/disable) are the solutions BUT do you have other idea or something you already did before and you can share with me?
I'm not even sure if I'll understand, so if you have a video tutorial or example to share it will be great visual for me to explore it.
Thanks ahead! and sorry about my bad English.
Early example of my noob-journey.