Unnatural20's Recent Forum Activity

  • Car.Pick Nearest (Player.X, Player.Y)

  • I can't help but think you're having a picking problem. But I can't figure it out either.

    Mind you, lots of check-neighboring is not necessarily a bad thing.

  • Overlapping and colliding do include 'touching,' as I'm sure you know. What do you want to implement it for?

  • Jenssons Line Of Sight is a behavior with multiple attributes. Obstacles, Range, Collisions, and Cone of view.

    You have to set Cone of View to less than 180 for it not to be able to see behind itself, and I would recommend 90.

    Also, I'm using the most recent edition of Construct 2: 196.2; you're using stable release 195, which is the older copy. You won't have a lot of luck opening .capx files on this forum unless you're willing to update to the beta releases. https://www.scirra.com/construct2/releases

  • The Behavior you're looking for is Line of Sight: I've attached an example of sprites that use it.

  • Let's start smaller?

    array:

    0 1 2 3 4

    0 1 2 3 4

    0 1 2 3 4

    Do you want the next stage to be:

    1 2 3 4

    0 2 3 4

    0 1 2 3

    but the final result to be

    [ ]

    [ ]

    [ ]?

  • Thank you... I didn't have any luck finding the tutorial on my own.

    And I see (with a second look) that it should be able to 'invert', more or less.

  • Basically I want to swipe the game level around like one does Google Maps. Like the click-and-drag functionality, but for an entire layer simultaneously, and with boundaries.

  • Heh, yeah. Can you tell I'm still learning, too?

  • bla6546: Ooh, yeah, your solution is even better. Fits RazorMonkey's advice of only checking the collisions of those sprites in particular. You shouldn't even need a subevent; but you might want System -> Trigger Once While True

    I've been testing this on a demo I threw together for another problem someone was having, but check it out:

    When the first two Enemies first are overlapping, they flash for a second.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ash10500, There's no need to make an object a sprite to add Bullet Behavior. A tiled background is probably a better match for Yttermayn's needs.

    By default, Tiled backgrounds are not animateable.

    The three solutions I'm aware of are yours- moving the background with a looping mechanism*

    Having one tiled background per frame- not recommended for long animations

    Having an animated sprite overtop, if only one piece of the background needs animation.

    *see for a background approach very similar to yours. The anti-choppiness solution will probably come in handy for you.

  • follow me here:

    Sprite -> On collision with Sprite

    System -> Pick Enemy by evaluating Sprite.UID = 1 | Sprite.UID = 2

    System Enemy.PickedCount = 2

    What do you think, blah6546? Those three conditions all go in one event.

Unnatural20's avatar

Unnatural20

Member since 8 Jan, 2015

None one is following Unnatural20 yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies