Kosiam's Recent Forum Activity

  • Just taking a wild stab here, but I think there are ways to save your images and load them. Possibly with 'dictionary' and/or 'webstorage'. I haven't figured out the syntax details on this stuff yet.

    I do think you could also make a .capx and send it to your friend, then he/she can open this .capx in addition to the one they have, and copy your stuff to their layouts. Then they close the extra .capx.

  • it is not possible via normal means. Global variables must be declared at the topmost part of a layout.

    there are ways to simulate them though.

    it is difficult to explain ways when we do not know exactly how you will be using them though.

  • maybe, I'm using r139 or so and my project doesn't do very much at this point.

    Also, I thought I read somewhere about the black screen thing...sure don't rem what it was though...maybe search the forum.

  • 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.

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

Kosiam's avatar

Kosiam

Member since 28 Jul, 2013

None one is following Kosiam yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies