toralord's Forum Posts

  • I am working on Grid path finding and NPC sprite that is using the grid movement behavior to move along the path.

    It was really easy to do, even though I over complicated it a lot in the beginning.

    And here another pic to show range ("how far a player can move").

    You can see where I am go with this.

    "Construct TBS"

    is on its way.

  • coming soon:

    the next tutorial will explain how to make a drag and drop level editor, that saves and loads encrypted level files, in just 4 events:

    <img src="http://dl.getdropbox.com/u/1013446/s/objectarray3cap/leveleditor2.PNG">

    I was think of a way to using you plugin for that purpose.

    I guess you beat me to the punch.

  • I notice that the .exe I posted the pathfinding was a little off.

    I fix it and added a NPC sprite that is using the grid movement behavior to move along the path.

    The controls are the same.

    To here it is.

    http://download938.mediafire.com/fygmnl ... vement.exe

    and a pic.

    <img src="http://i25.photobucket.com/albums/c87/TheLastTora/gridpathfindingmovement.jpg">

    And if any one is interested in knowing how it works.

    I will post cap.

    So leave a comment and let me know what you guys think of it.

  • This is a simple grid pathfinding system.

    Grid pathfinding

    The controls are:

    Left click mouse botten to set a goal.

    Double left click to path find.

    Right click to clear.

  • Main Menu of a game I'm working on:

    Watch in browser

    Download

    That really look great. The trees are shocking to see. The movement looks so real. I hope to see some more video of this game.

  • Wow great game and video.

  • ok, sorry, i misunderstood what you meant. no, there isn't any action to find and delete the smallest value, but you can do something like

    for each number

    if the current number is smaller than the first number, swap them, at the end of the loop delete the value at 0

    That works perfectly.

    Even though that kind of action would be great, I can live with doing it this way.

    Thank for the help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • >

    >

    > It dose not work.

    >

    > I need for example:

    >

    > array {"1"}

    >

    its not working because you put quotation marks around the number

    use the curly braces, like youb did, but not {"1"}

    it should just be {1,3}, and only if your specifying a range, if its just one index you want to erase at a time, no curly braces, no "", just the number

    It dose not work.

    It just delete the numerical index now,

    I need it to delete the index with the smallest value.

    Delete only recognize index numbers not their value.

    So the only way to delete the minimum or maximum value is to know them ahead of time.

    I made a cap to show what I mean.

    http://download450.mediafire.com/ndnd3c2mdntg/znmzmmgzecy/s3.cap

  • Real making a turn-based strategy game in construct is very advance in terms of knowledge of the program.

    There's a good chance that you are going to have to build the the engine for the game from scratch.

    You are going to need to now pathfinding algorithm like A*(pronounced "A star"), Dijkstra, Heuristic, and apply them the accordingly to movement range,and cost of terrain on the map.

    This is hard just from the player aspect of the game play.

    Now for the enemy NPCs It gets a lot harder.

    Enemy NPCs pathfinding condition are always changing based on players movements.

    when player gets to a certain spot the NPCs move to closet player character.

    As it get closer it and more character are made available to the NPCs pathfinding condition may changes again to compensate for that.

    Not to mention the the stats, items and other thing that make these games great.

    Well as for turn-based strategy game, demo, or tutorial there are none at the moment.

    Construct

    I hope to change that with my TBS I got in the works.

    Anyway like Lucid said.

    learn the basics. try your turnbased ideas a little, and then ask more specific questions if you run into trouble

  • > Is there and way to delete a container minimum and maximum value not just the value at the end of the container.

    >

    yes, "end" is the last element in the array, you can also use any ,0 being the firfst in the array. and i havent tested it much yet, but you can also specify a range of values as (min, max), such as (1,"end"), or (2,3), howver you must use the curly brackets, but my phone doesnt let me type those

    It dose not work.

    It just delete the first numerical index now,

    I need it to delete the index with the smallest value.

    I need for example:

    array {"1"}

    Index = Value

    Index 0= 282

    index 1= 438

    index 2= 10

    index 3= 169

    index 4= 1000

    Index 0 through 4 has there value.

    The index with the smallest value is deleted.

    That would be index 2.

    Then the next and the next,etc.

  • Is there and way to delete a container minimum and maximum value not just the value at the end of the container.

  • > Can anyone solve this ? I'm pretty sure there is a way. Maybe with a loop or something.

    >

    I have a solution. But I'm afraid it's very complicated compared to just activate grid movement behavior. On the other hand, my solution doesn't make use of that behavior at all, so you're much more flexible in changing every little bit of it. But be warned, I make use of functions, alias calling, loops and such. I'm nearly sure, there might be an easier way. But hey, it works

    http://www.mediafire.com/file/znonwyxim3y/Grid%20Movement%20Alternative.cap

    Hope it helps! (I know it's not well documented)

    Wow Tulamide there is some advance stuff you got right there. It took me all day to understand most of your work. good work. this helped me out a lot with the array and function objects, so thank you.

  • I would love to see the cap to this.

  • toralord - USA

  • this is simple to do. I made a cap to show you.

    http://download319.mediafire.com/3zint3 ... bjects.cap