Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Make click to move only work on background please?

brett-nortonbrett-norton Posts: 64Member, BASIC

Hi All

I am struggling to keep my player only moving when mouse button is pressed on the background,
I have the players movement changed to mouse click whenever i click the screen. however when i click on an enemy to kill it my players movement also moves to the enemy's position how do i prevent this and only make it move to mouse clicks that are not enemy's?

Thanks in advance brett


  • pHghostpHghost London, UKPosts: 2,301Member

    Game attribute:


    Rule in enemy:
    If pressed, change game.enemy_touch to 1, otherwise 0.

    In actor, mouse button down and game.enemy_touch is 0, do your fancy move logic.

  • brett-nortonbrett-norton Posts: 64Member, BASIC

    Worked great thanks again.

Sign In or Register to comment.