HuaHero's Forum Posts

  • bump for others to have a look

  • Ldk i have tried your suggestions. They somehow work but not really as intended as they were supposed to. I wonder if Construct 2 is glitching the game or i did it wrongly. I have attach screenshots below to give a better understand of the issues.

    1) I had already created an imagepoint and a collision box for the hit detection and i have also pinned the collision box onto the fist of my character. The reason why i have 2 imagepoints so that they will be able to display the collision box when i'm facing mirrored and non-mirrored way while punching. But i think i may have missed out something here and i ended up with this instead.

    As you can see, the non-mirrored side's collision box is displayed correctly just nice over the fist

    but for the mirrored side, i get this instead

    Below here is my code

    So i need to have the collision box be displayed correctly on the mirrored side.

    2)I can't seem to find the event where it says when "player punching" animation is finished, set animation to "player idle". What i did was instead this. But i still can hold down the punch button even thou it's already set to "On Pressed"

    3)I have already did that and the collision box is outside of the screen and i tried to add in the "destory" box after animation ends but i get the issue of my player punches once, the box comes up then disappears after going back to idle animation and then it doesn't appear back even i pressed punch again. It seemed to be destroyed forever.

    this is the code

    4) I managed to solve this by adding in helpers and it works.

    Hope others can learn from this also!

  • Ldk thanks for these suggestions, let me go try them out and i will post an update here

  • Oh i can no longer open the file as it's already saved in the latest r165 build....sorry

  • Ldk Let me go download install the latest non beta build

  • Ldk My animations are just sprites....the player box is the one set with the platform behaviour.

  • Ldk Sorry i can't seem to solve this issue. Neither for the AI part. Been messing around the codes but seemed to be stuck.

    Looks like it's easier to make a shooter game than a melee fighting game thou.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • which means the animation itself you add in another invisible box?

  • Hi!

    Thanks for the help so far! I have switched off rotation for the enemy but they seemed to bouncing on the floor thou.

    I did try both "Key is down" and "key is pressed", i still get the same issue which i can hold down the button and the animation stays there.

  • Bump! Anyone can help? Thanks thanks thanks!

  • Hi guys,

    Been reading the forums and looking for answers but to no solution to my problems.

    I'm trying to create a platform fighting game and i have a few issues at hand

    1) I have added in a few animations on the player sprite and one of the is the punching animation. I understand that in order for the game to know that when the player sprite's fist hits the enemy then a collusion will have to be on the fist. I tried adding a collusion box to the fist but it seemed to be displaying correct on the mirrored side of the sprite but not on the non-mirrored side as i'm guessing the imagepoint causing the issue.

    2) How do i after pressing the punch button (k), the animation will end? Right now when i press and hold the button K, the punch animation stays there instead of going back to the idle animation.

    3) Also, after i press the punch button (k), the collusion box stays at where the last animation is played. How do i also after the punch animation ends the collusion box disappears too?

    4) I tried to have the enemies chase the player around the game but there's 2 things i can't get my head around which is 1) Make the AI able to jump on the platforms and chase the player 2) Why are my enemies all turning in all different directions and not walking on the ground as they are supposed to?

    I have attached my capx file for the pros here to take a look.

  • Hi anthonydsf i managed solve the problem. I did not know that i need to add in all the required animation into a single sprite and named them. I instead went and add in the sprite separately and tried to link it that way.

    Thanks!!

  • Hi,

    this is the file

  • Hi,

    It's called sprite and the walking animation name is sprite15

    The above image could be wrong....i have attached another one

    Walking Animation = sprite15

    Jumping Animation = sprite

    How do i transcend sprite15 to sprite when i hit the jump (up) button?

  • Hi,

    I'm very new to game development and i need the help from the pros here

    I tried searching in the forums and from the tutorials but i couldn't find what i wanted.

    How do i after pressing jump, it will change to a jumping animation?

    I tried the below but it doesnt seemed to change the frame to of a jumping animation after pressing jump