Cameron9990's Recent Forum Activity

  • Check that there are no other objects with active ScrollTo behavior. If there is ScrollTo on the player - remove it.

    There is not, it's just very slight motion blur that it doesn't have when my player has move to.

  • On Every Tick: System scroll to (Player.x+100, Player.y)

    You can also use an invisible sprite with ScrollTo behavior, and move it to those coordinates using MoveTo behavior for smoother scrolling effect.

    The issue I keep having is just that the player spright becomes slightly blurry when moving.

  • I need my camera to follow the player at an offset since I have the UI cover the rightmost 4th of the screen, I want the player to be centered to the remaining amount of the screen.

  • There are few ways to do so depending on how you want it

    You could use the los to detect when the player is close enough in viewing range

    or

    you can give your ai a number variable call it dist then make an every tick and do set dist to distance(player.x,player.y,enemy.x,enemy.y) then just compare the distance

    Or

    Make a If hit boolean then compare player.x to enemy. X then simulation control you could use timers to let them know how long to runaway for

    Me realizing I forgot to mention it's 8 direction movement with the enemies being solid so they can't run through the player. Like if it were a platformer this would be easy, it's just the fact that it's 8 directions so I can't just say an X value or they'll have times where they're just trying to push into the player when they're supposed to be running away.

  • You will need to have a list of actions for your enemy then apply the value to variable:

    0: run to player

    1: hit player

    2: run away

    If the variable = a number action, proceed enemy to do that action.

    That... didn't answer the question on how to do #2

  • In my game I want one of my enemies run upto a player, hit them, then run off, then run back and hit them again and repeat. How would I go about that?

    Tagged:

  • I'm trying to have an enemy that runs at you, then when they hit you they back away then come back. So it can be them moving away from the player as apposed to there being a force applied to them, that works too, I just need them to back off.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Some workaround that might work for your case: construct.net/en/forum/construct-3/how-do-i-8/retreating-ai-173846

    ...I mean, you saw my code. I just have that but with more extra bits. Also for some reason with the pathfind to the player, they just stop moving, that's why I'm using move to, to move them along the path.

  • I'm having an issue trying to make a decent AI, I'm trying to use pathfinding which is neat, but for some reason every time they move through the path, they're for some reason able to... partially move through walls... like not completely, most I've seen is half their body. I've been trying everything, the walls are a tilemap that has collisions and the enemies themselves are set to be solid. Here's a screenshot of my code, I'd appreciate the help.

    Tagged:

  • A variable and local storage at least required:

    https://www.construct.net/en/forum/construct-2/how-do-i-18/save-global-variable-170111#forumPost1070603

    So wait, I have to save each and every value individually, there is no way to just save the whole project?

  • Like a Mobile app, generally whenever you close the app, all of your data auto saves, how would I go about that?

    Tagged:

  • I was speedrunning a game when I notices a category that required you to get all crystals in the game, I pointed out to the mod that we can't really tell what all of them would be because some are off screen and there could be an infinite number. However I do still want this to be a category. I know the game was made in construct so I'm really hoping there's a way to import the game into construct and just take a look at the maps real quick to find them all, is there a way to do that?

    Tagged:

Cameron9990's avatar

Cameron9990

Member since 2 Feb, 2019

Twitter
Cameron9990 has 1 followers

Trophy Case

  • 6-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies