Kosiam's Forum Posts

  • hmmm, so it does look like it can be done, though I'm still not seeing any clear examples. It seems they suggest at first to store files on a server somewhere on the net and then load them via URL's. Not exactly what I want. Any one able to provide short example or link to tutorial that shows how to actually save an array using this 'dictionary' or 'json' or whatever it is, then how to find that file to put in with the exports? It isn't as simple as 'dictionary - set array to array.tojson' and then when file is in the project that was DL'd you start with 'dictionary - load array.json'? And where do I find the actual file saved as 'array.json'?

    The Construct2 manual is pretty good, but when non basic techniques are mentioned, they don't really elaborate on how to use them.

  • I gave you the commands to call, but you can work out how to pass the parameters. Shouldn't be hard.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Place them in an array

    array = DamTable

    DamTable.at(0)=3 (weapon1 )

    DamTable.at(1)=4 (weapon2 )

    DamTable.at(2)=2 (weapon3 )

    then you set weapon to appropriate value when equipped ( i.e. if shotgun is equipped and shotgun is weapon2 then set weapon=1

    then the on bullet collison=

    set damage to DamTable(weapon)

    you could also keep track of weaponx names in the array via:

    DamTable.at(0,1)="Assault Rifle"

    DamTable.at(1,1)="Shotgun"

    DamTable.at(2,1)="Knife"

    This would also reflect addressing the damage as it would go from DamTable.at(0) to DamTable.at(0,0) etc

    otherwise I don't believe you can use variables such as shotgun.name, shotgun.damage etc

  • not sure this is exactly what you're asking but seems very close:

    set window in game... system - set canvas

    this scales your layout to new window

    you can not set layout width and height independently but you can scale both the same with ... system - set layout scale

    not sure I'm following #3 but I've a post about how to load an array on project start elsewhere, seems near the same.

  • Hi, I've tried to search and read on this, and while some things suggest it possible I could not figure out exactly how.

    I would like to save an array of dimensions 30,10,10 in a way to be able to export the project with the saved data available to be read in when it runs on the player's computer.

    Is there a tutorial that shows this or an easy explanation?

    Thanks

  • Ahh yes, that does work very well actually. I couldn't figure out how to make a dashed line easily so used a black border and the picking with mouse works now. Figured out the middle to transparent and looks good.

    Thank you!

  • I haven't gotten a dropbox yet. Thanks for the replies :)

    9 patch huh? The border is something like "3px dashed black".

    Would that resize for different areas, boxes, rectangles?

  • I exported my project to a folder on my desktop, zipped it up, emailed to a friend and they opened the index.html to run, worked fine.

  • I've had the session timed out as I typed up a post in about 4 minutes probably. I doubt it's just you. I suspect it is more of a configuration issue that needs addressed.

  • I've got a layout of a map and certain places on the map have a text box over it. These TB's are enabled, background set to transparent and border set to dashed to indicate 'clickable' locations on the map.

    I can not get anything to trigger via:

    mouse - cursor is over TBmap and condition left mouse clicked

    mouse - click on object TBmap

    it works with a sprite instead of a TB, but it is much harder to make a border on a sprite than a TB

    I believe it is because of the inherent properties that a TB once clicked is supposed to let you type. Can I get past this?

    My main goal is to just have a nice highlighted border that can easily be resized to show where you can click. Suggestions?

    Thanks

  • hello, I often clean up files in my computer and always delete old temp files. I did that in the C:\Users\User\AppData\Local\Temp folder and it seems to have deleted a needed file for loading my project.

    1st off is this for real? Why would critical files be stored in a folder named temp and not in the directory I created to store my project? Secondly, is there a way to change the behavior of saving the files in the temp folder?

    Thanks.

    *EDIT* FYI: I deleted the small project.capx file and renamed the project.capx.backup1 and recovered the project. It would be helpful to know what has really happened. (it all started when I was looking for the file Contruct2 sends to Firefox)