ramagoi's Recent Forum Activity

  • Getting stuck while pathing is not really a problem with the instance but the pathing itself. You need to make sure the cell size is appropriate, tight spaces are a problem for pathfinding. Test it in a larger open space to see if it works.

    I see.. Thank you a lot for helping me. so far so good the game run well. I will ask on another thread later

  • When you use on destroyed you are picking only the instance that was destroyed, so you cannot then pick more monsters. You can put those events into a function, then on destroyed : run function. Function allows to pick from all instances again.

    what's wrong with my code? when monster is dead, then player will find path to another monster on the field right? again and again.. Do I need "for each" or something?

    ===============================

    UPDATE

    this is works so far but got stuck in the end

  • It is that but the other way around, like I said the enemy object with pick nearest to player.

    dmmn its work!! ur great.

    next step is how to make it continuously killing the mobs. Im adding this and nothing happen

  • Yes the condition is what you need. On the touch event you can add the condition pick monster nearest to player, then it will find path to this one.

    still not working.. really dont know where to put that

    im suspecting this line:

  • There is a condition on the enemy sprite object, pick nearest, and you can use to player.x,player.y

    still stuck because i dont know how to write that..

    there is pick nearest menu on condition but not in action.. so my "player" still go to monster family the 1st one created, not nearest

    thanks for replying btw

  • For move along path use a condition 'player on path found' : move along path. If that doesn't work then please explain what's not working for you.

    how to check the nearest enemy if there is multiple enemy on player sight before move to them?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hello im newbie and want to ask what i need if i want to make game auto battle system like lineage 2 revolution/rox, rom, roo/moonlight sculptor ? its more like idle or grinding games. player just to tap on monsters list nearby and go to specific monster and kill and search same monster again and again.

    I cant find tutorial on youtube for auto battle system and attacking systems is different from some content creator. more easy if use manual move but thats not what i want. what i do so far just learn pathfinder and stuck on how to make this attack.

    btw, sorry for my english. And thanks for your help

  • I did everything exactly step by step, but when I made player to run it always falling half of its body into the ground ( solid platform ) and continue to run at this level.

    When it stops it return back to the ground level. I couldn't find the way to run him without falling down. What I am missing?

    check image point on player, set mid-bot or simply press 2 (numlock)

  • You can use percent instead. So the length of the green health bar is 100% when its full and if you get hit you subtract the amount from the health bar in percent.

    So if your HP is set to 100 and you get hit by an enemy causing -10HP you subtract 10% of the length of the bar.

    And when you're high level and your HP is set to maybe 1000 and you get hit by the same enemy causing -10HP you only subtract 1% of the healthbars length.

    So in case Anon's response wasn't clear for how to do that, you should set the bar's width to (current health/max health)*maximum length. You can also get fancy and use lerp or some other operation to make it smoothly change there. So, for instance,

    Set width to lerp(self.width, (current health/max health)*maximum length, 5*dt) where 5 would generally change how quickly it gets there.

    I've attached a quick example of how to do it. I changed the green bar to a Tiled Background object so that it won't get the blurred edges you get from stretching out a sprite.

    Thank you for help guys,

    C-7 I can't open your project because mine older version.. But set width with lerp is a new lesson for me. It's really cool. I had change my project. please check if it's the same thing.

  • I want to make health bar like a RPG games, or like other games, it's familiar (Dota/ Tera /Zenonia).

    So far I'm using set width but this is not what I want

    youtube.com/watch?v=DFUrc6eNsIg

    So if I use this tutorial, if my max hp player larger than layout, it's become bad.

    All I want is keep the width, no matter how much I add number of HP.

    I need some advice.

    Sorry for my english and thank you for your help.

  • Problem is that your different paralax is influencing touch.x and y.

    Thats why you must take it into account.

    Adding scroll.x/y - originalwindowheight/width should do it, I believe.

    Try to put into your line 4 this expressions:

    angle(Touch.X - (scrollx - OriginalWindowWidth/2), Touch.Y - (scrolly - OriginalWindowHeight/2), Gear.X, Gear.Y)

    min(abs(distance(Touch.X- (scrollx - OriginalWindowWidth/2), Touch.Y- (scrolly - OriginalWindowHeight/2), Gear.X, Gear.Y)) / 1, 100)

    thank you for help.

    I already solved this problem last night, it's just add layer index after touch.X and touch.Y so it's look like = touch.X(2),touch.Y(2), Gear...

  • Hi

    I made analog controller on layer 1 and parallax is 0,0.

    Game run smoothly early then the analog become bad when player at middle of layout/Right side, that because touch.X and touch.Y is always more than analog.X right?

    How to fix that?

    Sorry for my english -_-

    thank you so much

ramagoi's avatar

ramagoi

Member since 3 Nov, 2014

None one is following ramagoi yet!

Connect with ramagoi

Trophy Case

  • 10-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies