PulvererPeter's Forum Posts

  • If i use on destroy it works fine, but i want to leave the dead enemies on the ground. So i have to put them to state "dead".

    The event that makes it go down, is the players collision box colliding with the enemy. If i put the exp points to the attack action + hp below zero, it doesnt work.

  • Hey there, i have a quiet simple question, it shouldnt be too hard, but im really struggling with it. I have build a leveling system, which itself works totally fine.

    The enemy AI is based on a "state-variable", as example, 1 is idle, 2 is walking right etc. So if you kill an enemy, it's state is set to "dead" and you recieve experience points.

    The enemies are all in a family called "enemies" and they are all handled as separate instances.

    My problem now is, damage and states works fine for separate enemies, but when it comes to give experience points, my problem starts. My setup right now is like this. (I tried many many different setups)

    For each - enemy

    Health is >0

    Trigger once

    Set variable to "dead" and add points to variable "exp" for player

    Now the exp points will be added continiously and i understand why, but i still couldnt figure out a legit way to just add exp points ONE time on enemies death.

  • Ok, so there is no way to do it with a gamepad?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rekjl Thank you so much guy. The problem was, i put the whole "text appearing"-thing in an outside function. Now i put it inside the collision check itself and it works.

    Thank you!

  • Hey there,

    In my game if you hit an enemy, it shows the damage you do above the enemy. Now i have one family called enemies. The damage works fine for each of the instances, but the damage will be shown above all of the enemies.

    The hit detection is just a box which gets spawn an checks the collision. So, all i wanna do is check the enemy which was on collision last and choose it, to show the damage above it.

    I tried a lot stuff but couldnt figure it out.

  • Problem Description

    ____ A concise description of your problem here ____

    In this example, if you jump using the keyboard, the boolean jump is set correctly and also the player jumps. If you use a gamepad, the player jumps but the boolean is not set to jump

    Attach a Capx

    ____ Upload a Capx to this post ____

    https ://drive.google.com/open?id=0Byu9Y6SIpi1LNjhmdHltZE1lMjg

    Description of Capx

    ____ Concise description of what this CapX does ____

    If you press "W" the player jumps and the boolean "jump" is set to true. Same should happen if you press "A" on the gamepad

    Steps to Reproduce Bug

    • Step 1
    • Step 2
    • Step 3 etc.

    Observed Result

    ____ What happens? ____

    Jump boolean is not set to true

    Expected Result

    ____ What do you expect to happen? ____

    Jump boolean should be set to true

    Affected Browsers

    • Chrome: (YES/NO)YES
    • FireFox: (YES/NO)YES
    • Internet Explorer: (YES/NO)YES

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Windows 8.1

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

    216

  • blackhornet thanks for the answer. i tried your method but now the apples look like appearing very unnaturally and as if they were stuck in air and falling down. i just want the apples to fly up and then in any direction randomly and also randomly far.

  • Hey there,

    I have a problem with getting vector x to work right in my example. I want the tree to shoot the apples randomly in all directions. Vector Y works right, but Vector X seems to have problems, like as the apples stop in mid air. I could build a workaround, but actually i'm just curious why it doesnt work like this?

    Here is the capx

    https://

    drive.google.com/open?id=0B-Ksnwlyt36SdlNlcXhwY3ZhLUU

  • Hey there,

    I'm doing a dekstop game in which savestates are saved to a json-file. Now i'm wondering, how would i access certain data from this file, like the level of a character, which i saved in a variable? The goal is, to show that data in the loading and saving screen after the player saved his game.

    Thanks in advance!

  • Ratmaster ok, now i understand! you are really helpful and you seem to know quite a lot of the construct mechanics. thank you so much for your help!

    Sorry for bothering you, but may i ask you one last question? How can i access specific data from the json file? Like the level of a character, which i of course saved in a variable.

    Cause i wanna show that information in the loadscreen at the beginning.

  • Ratmaster man i'm so thankful, you really helped me out! with your advice i could finally get it working fine thank you! i have one question though, what exactly is the difference between the normal "system-save and load" and the "json-save and load"?

  • Ratmaster i just made a quick capx for trying your method, but i cant get the loading of the json file to work. can you tell me what im doing wrong?

    https://

    drive.google.com/file/d/0B-Ksnwlyt36SdlNlcXhwY3ZhLUU/view?usp=sharing

  • Ratmaster wow, this is great, gonna read it as soon as i can thank you so much and keep on doing that stuff, really helpful!

  • BunnehBoy thank you guy for your advice! i think i have to research some more about all that stuff, cause i havent worked with arrays before!

  • Hey there,

    Now i created a loading/saving menu in my project, which is gonna be a pc-game. I set up 5 text boxes in my loading screen. Now i'm wondering, how i can get

    the savestate informations like, player,some stats,playing-time and maybe a screenshot in there?

    Any suggestions?

    Thanks in advance!