raz0rf1sh's Forum Posts

  • I think I have it figured out ... calculations look good, just not sure if the events are firing sequentially ... would appreciate another set of eyes to review the project in the original post.

  • Fixed the issue with the destruction of all monsters, just need to sub event on the Pick Instance with UID, now just need to figure out how to add the monster retaliation attack.

  • I am still getting my arms around Construct 2, so far with the help of this forum I have been able to create a tile based map where a hero can walk through the map and encounter monsters. I am now onto the combat phase of things, and need a bit of help.

    On my map I have (1) Hero and (3) monsters. When I collide with a monster I capture the UID of the monster I collided with in a global variable CurrentCombatant. I also set a global variable IsCombat to 1.

    The hero has the option of [A]ttack or [F]lee. If they flee, I allow movement again by setting IsCombat to 0. If they attack, I'd like them to roll to hit (random, easy enough), compare to the defense of the current monster (I only want damage applied to the CurrentCombatant), and if I hit, apply damage. With a sub-event I check to see if the monster is dead. For some reason, ALL instances of the monsters are destroyed, when it should be the specific instance.

    Then I want the monster to attack using the same combat mechanism as the hero.

    Where I am struggling is with the sequence of events ... I can get the hero to attack no problem, doing it all within the A key press event. I just can't seem to get the monster to attack.

    Is there a simple example that someone can point me to, would be much appreciated.

    https://www.dropbox.com/s/xshwtg2wb1mi2os/ForeverQuestGridMovementWithBoard.capx

  • I figured it out ... for some reason I the Z-index weren't really working correctly. After adding the tile to the board, I still set the z-index.

  • Was really hoping to keep the sprites all the same size ... thought this would be easier. Thanks for looking into this.

  • I'm still struggling with this ... Could you take a look a this project and let me know what you think ...

    https://www.dropbox.com/s/71nrbu9mbra0r5p/SampleSpriteDetection.capx

    Press the down arrow should stop the sprite at the red wall.

    Thanks for the help!

  • Good question ... I am moving a sprite based on keyboard input using SetX or SetY, depending on the key pressed. What I would like to do is add a condition that will check just to make sure a specific sprite, say a Wall, is not in the spot they are moving into.

  • Is there a way to detect and instance of sprite at a given X and Y?

  • I am using grid movement leveraging the plugins: Board, LayoutToBoard and SquareTx.

    The problem I am having is that my chess piece (Hero) disappears as he moves farther right down the long hall way (see the attached capx file). If I remove ScrollTo, things work fine, other than the fact my map does not scroll.

    Any idea how to resolve this issue?

    https://www.dropbox.com/s/r73n40thbaq7mzm/ForeverQuestGridMovement.capx

    Thanks!

  • What was the resolution to this? The links provided in the answer don't work.

  • I am working on a "fog of war" type interface and need fill a layer with sprites, to cover the map underneath. I'd like to do this via a loop as opposed to adding the sprites individually. What would be the best way to do this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I did manage to find a couple good tutorials that helped me out! Just had to dig to find them, a lot of kruft to weed through.

    Thanks for the replies! Still would be nice to see some more official tutorials.

  • I'm an old (D&D gold box old) gamer and looking to create some simple tile based games ...

    Just a couple recommendations for some missing (or perceived, let me know if I am incorrect) tutorials or sample projects.

    Tile based movement, how to move a hero a fixed number of pixels, on a N, S, E or W trajectory.

    Tile based movement, how to move an enemy a fixed number of pixels towards a hero (player), on a N, S, E or W trajectory.

    Fog of war, slowly reveal a map as a character is moving through a world.

    Fight it out, a hero and an enemy collide and fight to the death, may take some time as calculations are ran for hit or miss.

    These would be most helpful! I'd even be willing to pay for them! Love Construct 2, still trying to get my arms around it! Keep up the great work!

  • My son and I are trying to create a simple old school tile based fighting game. We have a hero that moves along the grid, we would now like the monster to move along the grid towards the hero. Wondering how to best achieve this. Any help would be much appreciated.

    Sample project is below ...

    https://dl.dropboxusercontent.com/u/22861130/ForeverQuest.capx

  • I think I figured this out ... but not sure if this is the proper way ... just using keyboard commands.

    skydrive.live.com/redir

    Does this look correct? What if I wanted to limit them to one move per second?