mullerjannie's Recent Forum Activity

  • Hi folks.

    How would I make a one way road ?!

    This is what I have done this far. I’m using a tile map to set solids. So I make a little “road” using path finding. That work well.

    But! I want to be able to some of the paths one way. Not sure if anyone remember “Sokoban”

    I’ve tried using cost and adding \ removing it based on a position on the map. However that requires me to know my roads in advance.

    Any creative ideas are welcome.

  • Hallo there

    Imagine a landscape, green grass, birds singing and train malfunctioning train signal

    I've got a "train" game that uses the tile map and lack of collision polygons as the track. The train uses pathfinding and by tweak the cell sizes and pinning a solid object behind the train which is an obstacle my train move forward (and only forward) i.e. doesn't rotate and turn around into the carriages.

    This all works.

    Now I have a problem that some "track" are one ways only, I achieve this by having a sprite pair acting as signals, once a train triggers the one way it's not available to other trains, once the train exist through the signal the signals toggle.

    I do this by means of enable \ disable the solid behaviour. It also works nice. (unless some train triggers it by accident but will cross that bridge still).

    My problem and question however is that the signals are in pairs which maybe I could do with containers however, one should always be opposite of the other like spins!

    Is there a smart way to toggle their settings without "hardcoding" it.

    TIA

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Works great. Would it be too much work to include this I link in the manual under NW.js

  • https://www.scirra.com/nwjs

    I found that link and currently installing.

    I'm hoping that it will solve the issue to work with files.

  • Hi

    I find the file access information a bit confusing.

    I can read xml but not write it with Ajax, so I need NWjs. In order to verify that it works (since it doesn't seem to work, i.e. opening dialogs etc.) it appears that I need to change preview in browser.

    In order to do that with success , I need to install NW A.k.a node webkit.

    But in order to install that , I need to install a whole bunch of Linux emulator such as Cygwin in order to get NW running which hopefully will allow me to run it for browser previous which allows me to test my code.

    Personally I don't have an issue to do all of this but since it might not work and it's not really mentioned in the manual I was hoping there is some more explanation or info on this.

    Basically I need to write config to a file and allow the user to load it. This is my aim.

    I can read the config through ajax & xml but I need to be able to write it to disk.

    If I managed to get this working, does this mean the user will also need to install nw or do I understand it correctly that it's part of the browser?

    TIA

  • If I read my values into an array it seems to only iterate through 12 times (as I would expect it to). But when executing create object in the for each node it loops... more than 12 (well it continues)

  • Hi

    I have a simple test project that reads the months and their days from XML.

    I installed IIS on my box because I won't be able to add all the files as project files.

    I can read the file and see the valid XML doc by using AJAX.LastData to a textbox.

    I then use the XML for each to iterate through the nodes, however. if I don't do a nodecount on the month it seems to go into a loop.

    Which "seems" to fix the issue ....

    However if I add a create object in this for each iteration then it shows that it executes more than 12 times?

    Help on this would be appreciated.

    Thank you!

  • Hi

    I understand the differences in layouts and layers.

    Is there a general rule of thumb when to use one or the other.

    Personally I prefer layers because hiding them seems to be much easier than swopping between layers but that might just be me.

    It also raise the question when and where I should use "abstraction"

    I can put items in folders, separate items with layers or layouts. Use global vars etc.

    I know there are some general developer guidelines on this but has anyone made a list for Construct?

    Also hiding layers VS swopping layouts. Single event sheets VS sheet per layout.

    TIA

  • Thanks for the replies. I'm really interested in doing it in a fashion that it can be used at run time. In order for player to add their own image map or hot spot. In some cases it might just need to display a tool tip and in other places it should be clickable and then the user is directed to various layouts.

    Thanks for the advice thus far.

  • Hi

    I'm busy making a point and click adventure game. From what I gather using other browser based games it normally use js image maps in order to deal with scaling and different display resolutions.

    I'm not keen to use layers or "hidden" object because they don't resize and need to be updated when the image change resolution.

    Is there a way to achieve creating these imagine maps \ zones that deals with scaling and also allow for easy definition, i.e. if a user uploads an image he can define these zones. Some restrictions can be put in place to deal with a fixed resolution or image size.

    Thanks for the help!

  • Hi everyone!

    I would like to find out how to find the closest X for pathfinding.

    I have a player and a target, the target has an instance variable. On the layout I have 2 instances of the target.

    What I want to do is get the player to move to the closest instance.

    If I do a find path on the player, it seems to always move to the first instance or target regardless of how close it is.

    So I flipped it around.

    In order to do that I do a for each "Target", find path back to player. Then on the path found event of target, I save the number of nodes on each instance of the target.

    Then I do a Find lowest instance of target using the instance variable and thus I can get the target with lowest nodes . I then pass that reference through to find path on player .

    However sound this may seem, it doesn't work.

    If there is another way to do it please feel free to shout it out.

    TIA.

mullerjannie's avatar

mullerjannie

Member since 6 Oct, 2014

None one is following mullerjannie yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies