edwardr's Forum Posts

  • ok, small steps.. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I made a small example, where a new line will be added and values will be saved.

    http://1drv.ms/1UNA6yt

  • the timestamp is not really the problem. it's the array which gives me headache.

    insert it, show it and delete it... sounds easy, but somewhere I make a mistake.

    I will retry it and if it works I will post it

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I'm not sure how to do this (a reason could be that I'm not an expert in Arrays). I also searched in the forum, but I didn't found anything similar. Maybe somebody can give me a hint.

    1. Step

    My program makes every specific time period a calculation and gives a result.

    These results should be saved in an array with a timestamp. That means take the results, add a new y-line in array, put the result in and save it with the game-time. (e.g. time: 123 - result1: 12 - result2: 343 - result3: 1253)

    2. Step

    The results won't be shown everytime when the calculation is made.

    There is an icon which opens a pop up and shows the first array result. The player confirms and the next will be shown, until there is no one. The results/news which the player confirmed will be deleted, so it won't show again.

    I'll try to do this, but maybe somebody has an idea.

    many thx

  • I tried it in plugins, but it doesn't appeared. Then I put in behavior, there comes the error.

    But anyway I got some additional other errors, so I deinstalled Construct and installed it again. Now everything is fine, it seems something went wrong during the last Installation.

    sorry for the worries I caused.

  • Hi,

    I updated to Construct2 212.2 and have now troubles using the pluging. Am I'm the only one?

    Error:

    [quote:av3bthxg]Unable to load behavior in "C:\Program Files\Construct2\exporters\html5\behavior\json-v1.1\": Javascript exception in file "edittime.js" line 65: RefernceError: AddVariadicParams is not defined

    Code line:

    AddVariadicParams("Key{n},"Key or index to get the value. If no key is

    Stack trace:

    ReferenceError: AddVariadicParams is not defined

    at keyPath(edittime.js:65:5)

    at edittime.js:76:1

    This behavior will not be available in the editor

  • I was busy in the last days and didn't checked the Forum very often. But I recognized that I didn't get any mails regarding updates of Construct.

    Now I know why: It seems that Micorosoft Exchange Online Protection is banning Scirra Emails due to the spam issue. You should check if you are still on a blacklist or if it was only temporarily.

  • I'm one of the few who try to program a Tycoon / strategy game, so function(), families and variables are the first thing what I learned.

    integration:

    for example (very simple):

    function: set text "Buy vacant " & Family.ID

    (complicate)

    function:

    cash >10000

    subtract 10000 from cash

    set text "You own " & Family.ID

    compare Family.ID = Lot1

    BuyVacantLot1 Destroy

    Lot1Sold to 1

    compare Family.ID = Lot2

    BuyVacantLot2 Destroy

    Lot2Sold to 1

    -> on mouseclick on FamilyBuyVacantLot call function(Family.ID)

  • ok not knowing the program, I programmed a small sample.

    here a small description:

    I add the images into a family, add a family variable (right click), click each image in the family and name it.

    Now you know which image/lot will be clicked.

    I include 3 version (put you also can do this in one function, but this will be more difficult to understand):

    a.) showing the image name (the ID)

    the command function.param(0) use the variable within the function. It is passed when you call it (you can add several param and use it with function.param(1)

    b.) compare variables

    when this variable is clicked do this,.... when this clicked do this...

    c.) calculation

    you can also calculate or do other stuff. Not just showing text

    you can also combine it

  • read in the manual about: function()

  • I have no idea how to program it, but here a small hint:

    Nokia Lumia Beamer (Windows Store Shop)

    http://www.windowsphone.com/de-at/store ... cf0582043f

    There you can sent mobile phone photos to a TV (with internet) or computer by internet. If you change the photo on your mobile phone, it also change it (with a little time difference) at the computer.

    How it works:

    Phone -> sent invitation/link to the computer -> computer get access -> phone uploads picture to Microsoft server -> computer downloads from Microsoft server

    so you need a third party (server), but I doubt that it will work fluently, because of the internet connection

  • I didn't make this kind of game before, but I think I saw a sample in the tutorial. (also for download)

  • also in the manual

    https://www.scirra.com/manual/149/function

  • sorry didn't see this one. how can I delete this post?

  • Problem Description

    Is there a problem with the forum upload or it's just me having a problem?

    I can't attach a file anymore. (in my case a jpg)

    Observed Result

    The uploaded file is empty.

    Expected Result

    File is uploaded

    Affected Browsers

    • Internet Explorer: YES

    Operating System and Service Pack

    Windows 7

  • ok now these post confused me...

    I had a similar problem, but I use JSON. I download the plugin json (you can find it in the plugin forum, it's stable and free). Then I created all kind of JSON-Database (maybe in your case: left handed weapon, both handed weapon, right handed weapon, protection,...) and put these all in a extra sheet.

    [attachment=0:f5069rdc][/attachment:f5069rdc]

    When I need it constantly I set a global variable

    e.g. Pistol Firepower set value righthand.Value(0,1,"Firepower")

    righthand stands for the name of the database and 1 is the weapon ID