PulvererPeter's Recent Forum Activity

  • Kyatric

    I would like, but i cannot post a capx, cause its a commercial project.

    Anyway, i tried your method but i guess im doing something wrong? Can you check the screenshots and tell me if the picking is wrong?

    After the creation of the enemy attack, which is part of the enemy hit detection, it sets the "enemyUID-variable" of the attack, to the enemys uid which created the box.

    At the collision event it should now pick the enemys values which has the same uid as the attack-box variable, but it doesnt.

  • Kyatric Ok thank you! Fixed that already, but can you explain me, how exactly i can pass a value through.

    Like in this example:

    Player is on collision with enemy hit detection. Both events are seperate. No function involved here. Now i want to pass through the enemies strength-value to get subtracted from the players hitpoints. How can i pick the right value in the "player on collision"-event? Cause at the moment, the strength value is chosen by a random enemy of course.

  • Hey guys,

    Can somebody tell me how i can write a condition into an xml file? For example, i have a variable which sets the language of the game. Like 1 for english, 2 for german etc. Now i wanna write all the dialogue into an xml file. Now i need to check the condition "if english-variable is 1" then ......... How would i write a variable check inside the xml document?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Another question relating to this topic.

    Can somebody tell me how i can write a condition into an xml file? For example, i have a variable which sets the language of the game. Like 1 for english, 2 for german etc. Now i wanna write all the dialogue into an xml file. Now i need to check the condition "if english-variable is 1" then ......... How would i write a variable check inside the xml document?

  • grigrizljac dsminor

    Great Tutorial, thank both of you . Hope i can understand how to do it.

  • Anyone has a smart solution?

  • Ok thank you guys

    dsminor Thats what i actually thought of first, but also i thought maybe there is more "easy" and obvious way. Thank both of you!

  • I meant you can only assign object A to object1 but not to object2 at the same time, thats what i meant : )

  • Actually, all i wanna do is, assign an object to the enemy, so if the enemy dies, the object will disappear too. I dont wanna use containers, cause obviously you can only assign one object to one enemy.

  • Anyone knows a simple solution to this?

  • Hey there,

    I have a special problem.

    In my game you can poison an enemy. Now if the enemy is poisoned, an event is creating a small symbol over the enemy with a fade behaviour. At the same time the enemy gets poisoned, set to "poisoned"-boolean and the enemies "poison_timer" starts counting down. The fade-wait is getting set to the poison timer and the fade starts. So far so good, now when the poison-timer reaches zero, the poison is gone and also the symbol has faded out. Works fine.

    Now the problem is, i cant get my head around how i can make the symbol fade, when the enemy is dying.

    Lets say the enemy just got poisoned, the symbol appears over the enemy and now the counter is counting down, lets say 8 seconds.

    The enemy gets killed after 2 seconds. Now the enemy is dead but the symbol remains there for 6 seconds, even when dead.

    Is there a way to assign the symbol to the enemy which got poisoned so it "recognizes" the enemies death. I tried setting the fade on enemys death, but that didnt work.

    Hope somebody understands my problem and can help me. Thanks!

  • Rasputin Thank you so much, i never knew about it. So basic though haha....

PulvererPeter's avatar

PulvererPeter

Member since 18 Oct, 2015

None one is following PulvererPeter yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies