imhotep22's Recent Forum Activity

  • You are welcome

    Good luck with your game.

  • You will have to initialize the stats At least once to the player when the game loads. You can call it every time on start of layout, or call it only once on a specific layer (main menu as an example).

    There is no way to organize the array in construct 2, they will always look like a mess in the events, you will have to remember what each cell does. I usually open a word or exel document and I write my array there, and set a short description to what each cell does so I don't forget.

  • You need to download a construct 2 theme first, after its downloaded you have to put it in the construct 2 theme folder.

    See this thread scirra.com/forum/viewtopic.php?f=180&t=171608

  • Scale down the numbers would be the best solution here, 9.999e+38 is crazy large number it can also have effect on your performance because it will take lots of memory so save it.

  • I am not sure how construct keep the numbers, but its probably as singed integer or long, which can hold numbers between –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807, if you want anything larger than that you will have to keep it as a text(string) or somehow find a way to shorten it, because math operations with strings are rather hard.

  • Well depending on what you want to do with so large numbers, but best way to store them would be in a text variable, because they can hold more characters then a number.

  • On the event sheet add a new event, select the player with the animation, and under the animation tab click stop, if its always looping set a variable and toggle it between 0 and 1, 0 when it should run, 1 when it should not.

  • Well, if you already have the animation, call it in the event where the player is on the floor like you do normally with any other animation, but make sure to disable the other's animations first if they are already running, because you cant have more then 1 animation running at the same time.

    If your player is getting stuck at frame 0 and not animating, its probably because you are not calling the animation properly.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First you need to understand how construct 2 handles the animations, I suggest you read this scirra.com/manual/48/image-and-animations-editor

    scirra.com/tutorials/344/how-to-setup-a-simple-animation-system-for-8directions-behaiour

    Shortly explained first you need to import your animation frames to the sprite, then you group them together using the animation editor, like shooting animation, death animation etc. When they are properly grouped you can call them using the event animation tab using their group names.

  • What do you mean by link together? Like which button upgrades what stat, or you want to use the container to make two objects act like one?

  • Why do you keep the monster life as a global variable? Never less you can add event that will check if time is 0, then reset all those life variables to what ever value you like.

    event system -> compare global variable -> time <= 0

    action system -> set global variable -> health1 = 10

    action system -> set global variable -> health2 = 10

    ......etc

  • The basic attack should be simple to make. Add a mouse or a keyboard object, and on key press event add your attack actions.

    The combo attack its a bit tricky, I'm not sure when you want to be usable, but lets say you can use combo when enemy is bellow 5 hp and you need to press left click mouse and q at the same time.

    First you add a global variable called combo attack set it to 0 on start, also you will need to add a instance variable to the enemy we gonna call it bellow_50 set it also to 0 on start, then add an event with conditions, left mouse pressed, q pressed, combo attack is 1 and enemy instance variable bellow_50 is 1. After that you add another event which checks if enemy is bellow 50%, and add the actions global variable combo attack set to 1, enemy instance variable set to 1. When this to are set to 1, then you can combo attack the enemy, go back to the combo event check and add your actions.

    For the charged attack, add a global variable called charged, add an keyboard event when key is being held down, add another condition every 0.5 seconds add ad to action to increment the global variable charged by 1. Now you will need another event when key is being released, as action add damage + global variable charged, this will add all that extra damage to the attack. and you reset the variable to 0 after that.

    I think that should be it, but take a note this is advanced construct stuff and its hard to implement, it will take a good event scripting and trail and error's until you get it right.

imhotep22's avatar

imhotep22

Member since 18 May, 2017

None one is following imhotep22 yet!

Connect with imhotep22

Trophy Case

  • 7-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

9/44
How to earn trophies