rjgoodman's Forum Posts

  • 5 posts
  • So I'd need to have 3 sprites, one for surface, and one for each of the borders?

  • I've got a game where the player is driving down the road, and I'd like a collision to fire if he goes offroad to either the left or the right (so I can have the car crash). The problem is that as far as I can see you can't have multiple collision polygons for a sprite. I tried setting the road as the collision poly and getting the inverse (so it triggers when the car is not colliding with the road), but then the car shows as on the road as long as even the tiniest bit of the car is touching the edge of the road, even if the rest of the car is off road. Is there anyway around this, or do I have to create 2 invisible sprites to the left and the right of the road, which seems kind of wasteful for something like this. Thanks!

  • Thanks, I got it!

  • Well, I can't really use one sprite type because I may have different properties. See, the type of game is a spy hunter type game, so the big tiles are different types of roads, such as narrow 1 lane and 2 lane stretches of highway. These different road types would also, of course, have different collision polygons so I know when the player has gone off the road. So how to I generically refer to these sprites when they may be different object types?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm making a sidescroller with a background that is continuously moving behind the ship. This background will be made of several types of interchangable "blocks" of scenery. And of course I'd be scrolling these blocks backwards in the opposite direction of the ship to give the appearance of movement. I'm trying to use 2 sprites for this; when sprite A starts to move off the screen sprite B will move ahead of it, when B starts to move off, A moves back ahead, so with only two sprites that can have their image changed, I can have a level essentially go on forever. Can anyone who has done this keep me some pointers on how to go about this? I've done it with code before, but never in Construct. Thanks!

  • 5 posts