[SOLVED]8 direction behavior, tiles, and collision

This forum is currently in read-only mode.
From the Asset Store
Hand-animated Sprite Base for isometric game/animation development
  • first time caller here.

    i've run into a problem in a project i've been working on and i've searched everywhere to find the solution. but i can't find a solution/workaround anywhere.

    the problem is this: i have a player sprite with the 8 direction behavior and i'm trying to get it to walk about in my weak attempt at a procedurally generated cave. but every tile (which are all tiled background objects) acts solid, even the ones that don't have the solid attribute checked.

    there are 3 possible causes as far as i can see:

    1) how i'm drawing the tiles

    2) how i'm drawing the player sprite

    3) some check box i missed

    now i've tried looking at all three of these things, but i'm still stuck and it could well be something else i haven't looked at.

    here is two different versions of my .cap, eacg with a different method i've tried for making the player sprite go:

    mediafire.com

    mediafire.com

    (i hope mediafire is an ok way to share the file here)

    please pay no mind to any inefficiency or sloppiness that isn't relevant to the problem i'm having, i'm new at this.

    any help would be appreciated, i feel like a moron.

  • yeah that's a weird one. if you invert the solid objects( so Black = open, RockyFloor = solid) it works that way. if that helps?

    I'm going to keep playing around with it.

    But you might want to consider doing the collisions based off the array. especially if you plan on having large dungeons, since you'll have to generate the terrain relative to the player to avoid low FPS.

    FYI for anybody else checking out the cap. the HERO is outside the layout due to the solid object, so turn off unbound scrolling in layout2-(testbed) to see whats going on.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ha. now i feel stupid, your program is placing black tiles on all the spots, not just the blank ones.

    to test this change all your tiles opacity to 25% and add an x or whatever on the black tile in the editor.

    so now we know its something to do with you tile gen

  • SOLVED it

    you have 2 DFloorsXY arrays, one created in the Dungeon event sheet, and the actual one in the testbed layout.

    ether toggle the "destroy on start up" attribute in the layout on the DFloorsxy array. or just don't create the other array. ether way works.

  • Oh. My. God.

    +10 internets.

    that was it, it works now!

    thank you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)