caad8user's Forum Posts

  • Been looking for a good alternative to Intel XDK! Saved for future reference. Thank you!

  • I want to show my admob interstitial everytime my game goes to the gamover screen. As of right now, it only works on the first game over. Any subsequents "game overs", the interstital doesn't show up anymore. The game needs to be restarted in order for it to show up again and only happens again on the first game over.

    Does google/admob allow this? I was just wondering. I really don't want the ad to be intrusive anyway. Or, I'm not coding it properly in construct 2? Please see my screen shot below. Appreciate any help in this. Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • , Thank you so much for your time and help. Your solution worked perfectly.

  • , I'm sorry to bother you. But one more question. Since Player_HP and Player_HPMax are global? How can I "connect" those global variables to my player_Health instance variables? That way, when the player gets hit by an enemy bullet, it subtracts from the player_Health. Is there a way to do this?

    Thank you.

  • Thank you so much your help guys! , "Set HP bar sprite width to ((Player_HP / Player_HPMax) * 100)" was the formula that was missing! Thanks a lot! Health bar works properly now.

  • It's been haunting me. I've read this tutorial: scirra.com/tutorials/449/cr ... -healthbar. I followed every step and I still can't figure out how to make a proper health bar for my game. In the tutorial: "Of course, in your games you do not always enter the number of damage or health or maximum health. You will kep'em in variables. And apply this method to the variables is easy." How do I apply this method from the tutorial to my player health instance variable?

    Here's my dilemma: I set my player's instance variable health at start to 100 --> "set barHP sprite width to player.Heath". He defeats a boss, gets a power up, and the power up sets his health to 300 (or some arbritary number). I just want my player's health bar width set steady to just 100px width not 300px. I've been searching everywhere online on how to do it and I still can't figure it out. Can anyone please help me?

    Thank you in advance!

  • Thanks for your response, I forgot to mention that I have a top down shooting game I'm working on. Will the "elevator trick" work for a top down game as well? Bascially, my plan: "flying" would be the mount (with rider) going around the screen in random directions.....

  • Hello,

    I haven't really started to make the events. But I planning to have a boss object with a rider in it. When the player defeats the mount, the rider falls on the floor and start attacking the player. How I start on doing this?

    "rider" pin to "mount"

    when mount health <= 0, mount destroy.. then I have no idea after that. Any suggestions? Thanks for the help.

  • On my project (a top down shooter), a boss is spawn (from a spawner object) after a certain "regular enemy" kills. I've been trying to make the camera focus on the newly spawned boss a couple seconds, and then focus back to the player using Scroll to system parameter but it doesn't work. Is there any other way to do this?

    Basically, what I want to do is when the boss is spawned, I want the camera or screen to focus on it for a couple of seconds and then make the camera focus back on the player. Thanks for the help in the advance.

  • TheDom, thank you. I actually played around with it a bit. Turns out I like it in slow-mo better (when the boss appear) instead of just "pausing" the entire action. clarke2509, TheDom, Thank you both! Your help is very much appreciated.

  • clarke2509, Thanks for your reply. But, how do I do that? Sorry I'm still new in using Construct 2. System > add event does not have the "set time scale" option.

  • So on the project I'm working on, I put a "boss spawn" trigger. After 10 enemy kills, a boss appears. What I want to do is pause the game for, say 2 secs -- without any menu popping up or anything (just to let player know that a boss appeared) and resume the game action after 2 secs. I've searched the forums, but most discussion about pause is having menu and user input on it. I just want to make it simple -- Boss appear, pause it for 2 secs, then resume action.

    Please see my code. When the boss spawns, it pauses game indefinitely and it doesn't resume back to regular time scale. Thanks for the help in advance.

  • Lumik, Thank you so much. It worked out.

  • I'm trying to spawn a boss after a certain kill count (in this case 20). I created a bossSpawner object that should spawn a boss after 20 kills (global variable numEnemies). The problem I have is that the bossSpawner object spawn multiples sprites of the boss object instead of just one. Any suggestions on how to fix the problem? Please see my code below. Thanks in advance.

  • You wouldn't use an Else statement if you wanted to add more waves of enemies. Just pick a condition for each enemy.

    Tekniko, Understood. Thank you! I finally got the hang of it.