My Sword is Spawning Under The Ground

Discussion in 'Programming' started by Obsessed, Aug 25, 2018.

  1. Obsessed

    Obsessed Guest

    I'm making a simple RPG game, and I'm going to let the player shoot arrows and swing a sword, but my sword and arrows are spawning under the grass tiles I'm using. Am I using tiles wrong? Is there something I need to do to let the sword spawn over the grass? Please help.
     
  2. Becon

    Becon Member

    Joined:
    Jul 13, 2016
    Posts:
    109
  3. Raphael Caloz

    Raphael Caloz Member

    Joined:
    Aug 5, 2018
    Posts:
    22
    If your game is a top down game, you can put this code in all of your step events :
    depth = -y;
    This will automatically make any object at the bottom of the screen appear on top of the rest.
     

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