Problem with movement,

MaartenwinkelsMaartenwinkels Member Posts: 25
edited May 2013 in Working with GS (Mac)
Hello everybody!

I am working on a game where you can place stuff that sends out a smell that attracts the enemy. To test this system I made an attribute called EnemyIsInRange this checks if the enemy collides with the smell and the platform, because I only want to let the enemy move when this two things happens. I gave the enemy an rule with the two actor revieves event, overlaps or collide with actor Enemy and actor Smell. When this happens it changed the attribute to True, otherwise to false. I also implented a timer that checks every 0seconds and when EnemyIsInRange is True it moves to right I made this movement with change attribute/motionX from the movement tutorial from T-shirtbooth. I've also implented a drag and drop feature for the smell to test it. But When I placed everything my Enemy also moves when he doesnt collide with the Smell and the Platform. I set the movement to 100 so when he is at last he gets an extra 100movement I think.

How am I able to let my enemy only move when he collides with the two of them?

Or let it move slower because it needs to work like this game below:


I hope someone know my problem.
Feel free to add me on skype: maarten.winkels

-Maarten

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    Game / animation looks really nice !

    :)>-
  • MaartenwinkelsMaartenwinkels Member Posts: 25
    Game / animation looks really nice !

    :)>-
    Thats not my game hahah, I just want to make a mechanic like that what I described in my post.

    -Maarten

  • SocksSocks London, UK.Member Posts: 12,822
    Game / animation looks really nice !

    :)>-
    Thats not my game hahah, I just want to make a mechanic like that what I described in my post.

    -Maarten


    Whoops ! Ha ! :)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You've described how your game works (or should work) but you'll need to provide the actual rules you are using (or screenshots of the rules).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • MaartenwinkelsMaartenwinkels Member Posts: 25
    Soon as I am home I will upload the screenshots thank you for the advice.

    -Maarten
Sign In or Register to comment.