how to make a sprite ignore solids?

0 favourites
  • 5 posts
From the Asset Store
A set of 10 pixel art animated magic effects with icons. 2 Fire, 2 Earth, 2 Wind, 2 Water, Portal, Explosion.
  • Can't post in the "How do I?" forum for some reason... Got an "authentication error" so can one of the mods move this over there? Sorry.

    I'm messing around and trying to recreate one of those running games where a cloud or some other instant-death-causing thing is chasing you, and you have to escape. I have everything set up, but with the platforms in the way, either the "cloud" object doesn't show up at all, or it doesn't move because it's overlapping other solids.

    I've played a game on here that used this system so I know it's possible. I just don't know how to get around this problem. I pretty much just need it to float above all the other layers.

    Any help is appreciated, thanks :).

  • Can you post a capx so we can see how you're trying to set it up?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Keeps saying only members with sufficient privileges can post here... I dunno.

    I basically just need a big square to slide over the layout. It will pretty much be covering everything as it follows the player to the goal. I can figure out how to set up everything else. I just don't know how to get the "big square" layer to move without interacting with the platforms.

    For some reason I can't post links.

  • If it needs to collide with player only (no other object) you could do

    every tick -> bigsquare: set x to self.x+10*dt

    where 10 - is the speed of movement (can put anything you want here)

    This will make that sprite move to the right. And then set only "on collision" or "is overlapping" with player to test collision.

    For posting links you need to increase you Rep point - by making more posts for example.

  • You don't need to give the death cloud any behaviour like solid.

    You just need to update the position(size if needed) and check for player overlap.

    is this a Level Runner or an Endless Runner. The design patterns between them are different.

    An Endless Runner has it that the level moves from one side of the screen to the other. While the player and deathcloud will be relativly stationary.

    A Level runner has it that the the player actually travels along the X axis as would the cloud.

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