GameMaker: programming a twin-stick-shooter! Enemies

Discussion in 'Programming' started by DraiterLp, Oct 5, 2017.

  1. DraiterLp

    DraiterLp Member

    Joined:
    Oct 5, 2017
    Posts:
    1
    Ive done a twin-stick-shooter vs zombies. my only problem is, that i only get damage if i hit the zombies, not if they hit me... I
     

    Attached Files:

  2. Jochum

    Jochum Member

    Joined:
    Feb 13, 2017
    Posts:
    49
    Hi,

    Please try to create a collision event for the player in the object of the zombie:
    Code:
    //Collision code
    "Total health" -= "damage amount";
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice