Evil pants does the correct attack with all three events, including runToBase. Brown Pants, the player, responds using the same attack ability, correctly executes the runToTarget and attack, but does not run back to base. Instead, Brown Pants moves closer to Evil Pants (the target, not the user waypoint) and nothing else happens. It is as if Brown Pants is ignoring the target position settings in runToBase.
Note: Brown and Evil Pants both have box radius 1. runToBase is set to:

Moving Object
Object - Actor
Actor - User

Target Position
To Object - check
Object - Waypoint
Waypoint - User Base

Thanks in advance for any advice on this. It is probably something simple, but it is driving me nuts.
Post edited by Wood on
  • yeah this is something i noticed to now that im working on the battle system the runtobase dosent seem to work and atm mine is set up just like the tut on that event for turn based battles
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Working fine on my end (and the demo project) - do you have Wait and Controller Move enabled?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • welp i cant seem to get it to work since i followed the tut they just keep moving closer to each other instead of running back to the base . if they didn't collide they would move into each other :p heres a screen of my settings for run to base

    image
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Well, your picture shows that you're not moving the user, but the user position ... change the Moving Object to Actor and User.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • welp im a jackass i must have read the tut wrong thanks GIL
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • I do have controller move and wait enabled in the Movement Settings. What has me puzzled is runToBase works perfectly for Evil Pants, but not for Brown Pants. I only have one runToBase event in the tutorial project, so what causes it to fail to return Brown Pants to his user waypoint? Is there something I could have done that would interfere with Brown Pants' user base waypoint?
  • Well, you could've moved it in a previous event ...
    Can you send me a test Unity project where this is happening?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I think I figured this out. runToBase does not return the Player Character to its location where it enters the battle trigger. Player Base is the Battle System/Battle Spots/PlayerSpots/Member0. I had overlooked the minus signs on the EnemySpots/member0, and when I did that, the player member 0 and the enemy member 0 were BOTH 3 5 3. The player launches its first attack from its position on the edge of the battle trigger, but after the first attack it returns to the PlayerSpots/Member0. Since I had 3 5 3 as the battle position for player and enemy, my player tried to return to the spot where the enemy stood. (I missed those pesky little minus signs). i found it by going through the tutorial a second time, and when I got to lesson 16, I had the eureka moment. Whew!
  • If you are good with this now you can edit your first post and put [Solved]

    before the title of your first post so people know this thread is a good place to look at for help if anyone else has a similar problem since you solved it

    and to save Gamingislove from having to do that when he gets back. : ) Congrats on figuring out your problem. It's the most satisfying way. : )
  • Done. Moral of the story. Be very careful with signs (+) (-).
Sign In or Register to comment.