achik1990's Recent Forum Activity

  • I recommend looking through the "tools and resources" section of the scirra.com forums.

    but here's one to get you started.

    free stuff every month

    thanks mate and I will be sure to check out the :tools and resources" here on out

  • Hi guys I'm looking some decent music/sfx for my game..

    I wanna post me game on this site.

    But I'm afraid of copyright etc ...

    it haunts me till this day

    Hopefully u guys can show me or share a website that provides royalty free music/sfc ..

    Thank you

    *hugs and kisses*

  • I'm currently making a platform game but I'm having problem with my respawn.

    What I did is when the player dies .. the layout will be reset.

    It went well but the HP I still set to 0 when the layout reset.

    Oh btw I have a "MaxHealth" global variable .. if that helps

    I dunno but I'm pretty darn new to the art of making game.

    If someone can offer solution or advice pls do <3

    Thank you

  • You can make another instance variable with the name "maxhealth" and set it value to 500, when you want to restore hp, just set your "health" value to "maxhealth".

    Or use math: set health to min(health+x,500). Change x to whatever value you want, Health will never be greater than 500.

    Example:

    OMG OMG OMG your math solution worked!!!! <3 <3

    I love you soo much <3

    thank you..thank you..

    you have my eternal gratitude <3

  • Hi guys .. I wanna make a health potion that once you grab it, it'll heal you to full health.

    Problem is how can I tell game to only heal my lost health not adding it.

    i.e :

    500/500 - 200 = 300/500 -> Grabs Health Pickup -> Full Health 500/500 <-- this is what I wanna tell my game

    Not

    500/500 - 200 = 300/500 -> Grabs Health Pickup -> 800/500 <-- not what I wanted

    Note : I dont use global variable for this.

    Btw I'm a visual learner.. hopefully you guys can post example .capx cause I don't understand text as much.

    I wish I could post my .capx but my rep is <300

  • > So, do you want this movement to be at the end of patrol route (far left or far right), or just randomly? If so, you could just add a random event that stops the boss, sets the idle animation, waits a little, and then starts him again.

    >

    I wanna make the boss stop at the end of patrol route and sets the idle animation.

    I did that one but as soon as the "wait" ends he goes patrolling with the "idle" animation still on.

    I wanna make the boss stops at the end of the patrol route, sets "idle" and wait for X secs and then continues to patrolling using the "walk" animation (a transition between "waling" & "idle") instead of "idle" and vice versa.

  • So, do you want this movement to be at the end of patrol route (far left or far right), or just randomly? If so, you could just add a random event that stops the boss, sets the idle animation, waits a little, and then starts him again.

    I wanna make the boss stop at the end of patrol route and sets the idle animation.

    I did that one but as soon as the "wait" ends he goes patrolling with the "idle" animation still on.

    I wanna make the boss stops at the end of the patrol route, sets "idle" and wait for X secs and then continues to patrolling using the "walk" animation instead of "idle" and vice versa.

  • I'm making a boss enemy, he moves back and forth (patrolling) but I wanna add another animation (idle) and make him wait for few seconds (smooth transition) before continuing his patrol.

    If that makes sense.

    Simplified version :

    I've done the patrolling movement but I wanna add a different animation for few secs before he continues with his patrol.

  • This is a case where you SHOULD use global variables. I can't understand how you have it set up from your description, but you should have a global for "health" that you manipulate based on your game. Then, you can display something on screen to represent it based on the variable.

    gotcha ;D thank you ..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys .. I'm having problem with my health bar.

    As soon as my character goes to the next layout, the hp resets to full ..

    How do I make the hp value carry on to the next layout?

    I.E : Layout 1 : 50/50 -> hit by mob -> 40/50 -> Goes to layout 2 : 40/50 instead of resetting the health to 50/50

    Note : I dont use global variables ... just setting it it to "every tick" and I use "add variables" for my health bar

  • I would copy the events to a text editor,and post them here...somebody will give you a solution straight away.

    please do you have my eternal gratitude

    I'm stuck ... I have no idea what to do now...

  • Does the health go to -240,180,60? Like, does it go in to the negatives?

    the 1st collision was accurate i.e : 100hp-10hp = 90hp but after the 2nd and so forth it went crazy ...

    240-180-60 ... but as far as I know there were no negative numbers

    I did the health bar instead of text but it's still the same.

    Funny thing is .. I have no problem when creating health for enemies ..

    enemy's health behave like it should while my character didn't.

achik1990's avatar

achik1990

Member since 11 Aug, 2015

None one is following achik1990 yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies