Skillasaurus's Forum Posts

  • Say I have 2 Box sprites. I move 1 Box sprite ontop of the other. Instead of totaly overlapping the bottom Box, how can I make it look realistic and 2d by 'Nudging' the top Box's Y Position up a little bit.

    It's kind of hard to explain, but here is a picture of a game called Tibia, which uses this. I just can't figure out how.

    images.tibiabr.com/conteudo/imprensa/virgilius02.jpg

  • I found a small and very simple solution if anyone is interested.

    On my "On Pathfinding Path found" event, I added a subevent that checks if the Zombie is currently overlapping another Zombie. It checks which Zombie is the closest and which is the farthest. It then assumes the Farthest Zombie is behind the Closest Zombie and Stops its Pathfinding. It then moves the Closest Zombie along the path, assuming its also not colliding with another Zombie that is even Closer.

    It's not too buggy and is better then nothing for now.

  • Yeah. I guess there is no easy way to do it then.. My only idea so far is manually setting up a system where a Zombie Stops Pathfinding when it collides with another Zombie that has a Closer Distance to the player, and manually make the Stopped Zombie find a way around the Zombie it Collided With before resuming Pathfinding to the player.

    This seems like its gonna be really hard and buggy, but it's all I got so far. Any other ideas would be great. Thanks for the responses and help though.

  • Yeah, I thought that should work too. But the zombies just act like I never made them Solid and I see no change at all. But they seem to be avoiding all other objects with the Solid behavior, just not their fellow zombies. I can't seem to understand if this is because the zombies are Moving Objects, or if because they are the Same Object...

  • I'm trying to make a zombie game. I got everything worked out except for how to make the zombies set themselves as obstacles. So zombies will avoid other zombies and walk around eachother to reach the player. I tried using regenerate obstacle map but it makes the game skip really bad.

    Any advice or suggestions on how to go about this is appreciated.

    Thanks.

  • I have a family called "AttachableSprite". When I click on a AttachableSprite, I want it to Pin itself to the nearest AttachableSprite.

    How would I go about doing this? I can't figure out how I can work with two instances of the same family, and Pin one to the other? Thanks!

  • I'm just wondering how I can set the variable of a instance before it is created? I'm creating a bullet and I want to set its target destination before it runs its OnCreate script

  • Dang. So if I am having an Event with FamilyOne, I can't pick the same object from FamilyTwo by its UID or anything? Thanks

  • If I have a Sprite Object that is in 2 Families, FamilyOne, and FamilyTwo, and I have a tick event assigned for collision in FamilyOne, how can I select the Picked Objects variables that it inherits from FamilyTwo?

    Thanks

  • Thanks man! got it workin the way i needed

  • Thanks

  • Anybody know? I cant find an answer

  • I'm trying to figure out how to use the drag and drop behavior to snap to grid when it is Colliding with another object. And I need it to snap RELATIVE to that object position.

    Kind of like this:

    scirra.com/forum/snap-to-grid_topic47676.html

    But I want it to snap relative to the object it is colliding with.

    Thanks

  • Thanks for your answer. Do you know if there is a way to give a Canvas Element collision events like Sprites? It seems it has everything a sprite does except collision...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • bump. still stumped :P