Vati-nyan's Forum Posts

  • Vati-nyan

    You might place a private variable "cost" (or something else) for each tile/chess.

    Instead of having the code set up the tiles automatically at the start, I tried drawing it manually and then include all tile objects in a family. Then use it like this instead of the tile sprite:

    Would that work then? As a way to have different terrain types.

    My own attempt didn't do much, but that is possibly because I tried doing it with the Tilemap object. Would I have to put in each square of the map as sprites? Or am I completely off the mark?

    Sorry for all the questions! I like this plugin a lot, and would love to understand it better.

  • Vati-nyan

    Each tile/chess is an instance (sprite, usually) which has UID for registering (put into) board object. So that this slg_movement plugin could go thorough tiles to get cost by condition.

    Does that mean I have to manually set the cost of each tile after they have been placed on the board at start of layout? Since at first they are all the same. I'm not sure how to do this in practice.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've been playing around with this plugin and it's amazing.

    Is it possible to assign each individual its own movement cost? If so how?

    Ideally I want to make some tiles cost more to move through without being impassable or unable to be stopped on.

    Any hint of how to do this would be greatly appreciated.Harlequin2013-11-27 16:38:44

    Hello again! I'd like to echo the question above. So far I see that movement can be affected with one cost and one filter, but how does one go about having different terrain costs on one map?

    I take it you need some way to register what objects the chess moves across? (If you use something like TiledBG or Tilemap together with the board)

  • Very nice! I like your way of making these videos, looking forward to more.

  • Hmm won't work here I don't think. Not a bad idea though!

  • Hello everyone!

    I've been working on a project that keeps getting me stumped, but I keep going back to it and making a tiny bit of progress here and there. There is one issue I just can't seem to solve though, so that is what this post is about.

    I'm using Rex's SLG-movement and Board-plugins, which are quite amazing. I don't want to keep bothering his thread any more though, so I will try and turn to the general community!

    The moving around part works pretty well so far, and I have a good idea of how to make combat resolution work. My issue is making player units and enemy units engage in combat though!

    <img src="https://dl.dropboxusercontent.com/u/11716886/Fox/Untitled-1.jpg" border="0" />

    Now to click that grey guy....

    When an enemy is within range of a unit, I want to be able to click it, have the unit move next to the enemy, and start the combat resolution. All I try is for naught though....

    <img src="https://dl.dropboxusercontent.com/u/11716886/Fox/Untitled-2.jpg" border="0" />

    Nooo don't go that way, silly!

    Since I'm no good at explaining things, and I'm aware this post makes no one smarter on what is wrong with my code, I'm more than happy to send my Capx for a closer look to anyone willing to help!

  • <img src="http://img32.imageshack.us/img32/4513/kpv.gif" border="0" />

    Added digging animations, hud, energy, hunger and physics (needs to be adjusted). I'll keep working on this after two weeks.

    (This is a prototype so everything is just a placeholder)

    A fox simulator...!

    Sounds like a must play for me.

  • Oh, thank you very much! Looks like this will work better than what I had put in place.

  • I'm going to have to be the dummy once again here!

    I've been trying to use this plug-in to store a script, since the game I'm making has a lot of dialogue. I thought keeping that dialogue in a separate text file rather than insert it all manually in events would be much better.

    I'm really stumped on how to load the table into this plug-in though, the example only shows using a manually typed string?

    I imported the .csv as a project file and used AJAX to load it, and from there I see people say a lot of things about turning it into a JSON string and loading it from there. I don't really know exactly how this works, and all the examples and discussions I find on it on the forums and tutorials talk about different methods and different results, so I can't really put them all together in something I can use.

    So far I have something as simple as this, which I'm sure is a far-shot from what I need:

    <img src="https://dl.dropboxusercontent.com/u/11716886/Untitled-1.jpg" border="0" />

    I bet the AJAX tag has nothing to do with the CSV string that the plugin wants.

    What do I do inbetween these two and actually being able to read the things in the csv table?

    I apologize for being a total noob on the subject.

  • Vati-nyan

    Sound nice, what's the problem? Do you mean select the enemies in the range of 4 cells (for example)?

    Hello again! Some things happened over easter that forced me to focus more on my main project again, so took a while... but I'm back at trying to make this work.

    My problem is mostly that movement based on your examples work nicely.But I also want to somehow be able to click an enemy chess within that movement range, have my chess move next to it, and then initiate combat.

    So I guess your example there is right, yes.

  • You would select your own chesspiece, then (if able to reach it) click the enemy chess and select it that way, yes.

  • Yeah, that would be it.

  • Hello again! I've been using your plugins for movement with good success so far. Been trying to make something based on your examples in the "test_slg_movement.capx" and have chess pieces moving around as they should without overlapping each other and all.

    I'm a bit stumped on how to make them interact with 'enemy' chess pieces however. You wrote something about using filters to pick enemies, but I guess I'm not quite advanced enough yet to completely understand how to use it.

    Mostly I'm looking for something that does:

    "Click enemy chess > move to enemy chess > do stuff."

    Any hints?

  • I had not thought of the invisible sprite idea, I think I'll try that out for now, thanks!

    If people have other interesting ideas for the problem, do keep sharing.

  • Hello! I tried looking through the FAQ, but didn't find something that quite helped me. Maybe I overlooked it, but here is what I'm trying to do:

    Rather than have the camera, follow a specific sprite or arrowkey, I'd like to scroll the 'map' by moving the mouse to the edges of the screen. As is seen in some strategy games.

    Is there some fancy way of achieving this that I have missed?