AnD4D's Recent Forum Activity

  • I think you are missing my point. What I suggest is to make another tilemap with thick tiles (1/2 size of the main ship tiles) that will act like walls for the pathfinder plugin.

    See this demo I made:

    https://www.dropbox.com/s/isnc7nm26ekdv ... .capx?dl=0

    You can experiment with pathfinder properties (cell size, speed etc).

    Also, after the character has arrived to the destination tile of the ship, you can adjust its position (move to the center of the tile) with MoveTo.

    Ah yeah, I understood what you were saying, but I've already tried that and it caused unusual things.

    My character sprite was 16px X 16px, and the gap it was trying to walk through was about 32px. While it would navigate quite well, sometimes it would just cut corners and walk through the walls, no matter how small or large I made the cell size. Even in your example I'm seeing the character walk into the walls you've set up, or cutting corners. It also bothers me that the character will stop too early, and the only way to get him to stand exactly on the square I want is to slide him onto it at the end.

    I wanted grid based for more precision. In my grid tests, the character moves great, and ends up exactly in the middle of the room he's meant to walk to. The problem is that he doesn't give a damn about walls at all <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    mOOnpunk Eep, that looks complex! I'm not enjoying using Rex's plugin(s) at the moment, because I have to use 3 or 4 just to get characters to walk around. I want players to always pick the fastest route, so giving tiles costs would be the best thing.

    newt I could use a spline path, but again, if a room is on fire, I'd like for them to be able to walk around it if it's avoidable. Never used splines before, so not sure if that's possible, having people avoid areas if it's dangerous.

    R0J0hound I've been looking for examples for the past day or so, but am yet to find anything of yours. Will look harder.

    The EasyStar example looks good, but when I use it, my character won't walk around the ship at all, but will happily walk on the outside.

    Again, that's why I think grid based is best for me.

    Shame there's not a simple plugin/behaviour this late in C2's lifetime.

  • dop2000 At the moment, my walls are 2/3 times larger than FTL's, and either the objects struggle to get through, or they phase through the walls. The pathfinding plugins seemingly don't have an issue with corner cutting either, which is really annoying.

  • dop2000 Using Rex's plugins?

    I had already tried such an approach using the default pathfinding plugin along with the EasyStar plugin. I get the best results with the default plugin, but because the walls are so thin, at times the character just walks through the walls, or gets stuck, or refuses to stand on the destination point, which is why I'm hoping to do it using a grid based system.

    I also find Rex's plugin (while superb) rather cumbersome, in the sense that I have to have 3 plugins all active at once (Board, Square and MoveTo).

    I can see the potential, but worry about the process.

  • As an exercise, I'm trying to learn how the devs of FTL: Faster Than Light did their pathfinding.

    I've been using rexrainbow 's plugins to try to get this working, but after trying out the Layout2Board, MoveTo and the Monopoly plugins, but can't quite get what I want.

    I feel that using the mentioned plugins, I could manually create a map and do the movement, but I can't figure out how to get it to avoid passing through walls. I feel I could manually choose tile by tile those that are solid (not that I can actually get similar working), but in FTL, where the grid is, say, 32px x 32px, the walls are mere pixels. I fear using this/these plugin(s), I would have to set entire tiles as solids/obstacles.

    Note how the characters will avoid walking through the walls, but how thin the walls are. This is what I can't figure out.

    If anyone has any ideas, it would be great!

  • Magistross I don't suppose there's a way to have the tilemap's collision polygon block the path? My tilemap is mainly walkable, but has walls to the side. At the moment, the objects will happily walk through walls, which I'm trying to avoid.

    Is this only useful for entire tiles being walkable or unwalkable? No way to default all tiles to walkable and collision polys to unwalkable?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also, do we need to include your buttons, or can we include our own? I find it odd that the videos on your site show a button taking up half of the screen.

  • GameeApp I'm just reading your GamePlay Experience page:

    https://github.com/gameeapp/gamee-js/wiki

    I note it mentions leaderboard, but reading it through and looking at the plugin, I see no where that would allow me to use the leaderboard.

    I can update the score, but can't call it anywhere, or summon it. Is this all automated? Not called by the developer?

  • Hi,

    the cocoon plugins are free. You find all information in my guide here

    https://shatter-box.com/knowledgebase/cocoonio/

    Guide for Apple: https://shatter-box.com/knowledgebase/p ... tunes-ios/

    No I do not use PhoneGap, only CocoonIO.

    Regards

    Andy

    Thanks for the help!

    When I installed those plugins, however, I was no longer able to play a preview on my PC. Kept getting an error message, and have gone back to the old one. Frustrating, as it appeared to be working on the devices (exported).

    You had that happen before?

  • Ultimate IAP is a completely different plugin. I mean that it's not related to the official IAP not Cranberry's one.

    When it comes to C2 code then it's exactly the same as for Android. There are no differences. But if you ask for Appstore internal configuration then I'm afraid I can't help because I simply do not own a Mac nor iPhone. All my customers managed to set it up there by themselves after I provided the plugin and C2 code. But I can contact someone who built it for iOS and ask for Appstore config details. In a meantime I googled some info quickly, but I guess you already went through sites like this one https://developer.apple.com/in-app-purchase/

    Oh, I see... is that to say you've never tested this out personally on an iOS device, but your customers have? I'm looking through the comments, but can only see people talking about Android.

  • Iolva Have you done any iOS games?

    AndreasR Are you using PhoneGap at all? Might you be able to point me toward where I can get the CocoonInApp Plugin? Or is it part of this bundle?

    The same code/game works fine with my Android build, and I'm struggling to see anything I'm missing with iOS. Looking at some walkthroughs tells me to ensure it's set up in xcode, but because I use PhoneGap I skip that phase.

  • Does this still work? I'm seeing a lot of queries about things not working in the latter few pages of this thread.

    I've recently purchased Ultimate IAP, and I'm unable to get it to work with iOS. Android seems to work fine, but when I press the purchase button in my app, nothing happens at all. I read that the same thing was happening with the official IAP plugin, so I was wondering if there's anyone who recently released an app using the IAP plugin in this bundle on iOS without issues.

    Thanks!

  • Sorry to contact you again, but it's still not working for iOS. I started to think that perhaps I'd put things in iTunes Connect incorrectly, but I've gone over that with a fine toothed comb, and it's all set up as it should be (AFAIK).

    Reading over some forums, I'm seeing reports of people saying that they're getting no IAP using the default plugin, but are having success with a Cranberry plugin. Might I be able to ask how much your plugin differs from the official.

    Are you able to share a screenshot of how you've implemented IAP in one of your iOS games?

AnD4D's avatar

AnD4D

Member since 4 Nov, 2011

Twitter
AnD4D has 3 followers

Connect with AnD4D

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies