edwardr's Recent Forum Activity

  • ok, I have a small problem:

    When I first time add a new line, 2 were added: 0 - 0 - 0 and e.g. 2-12-13. After that it works just fine and add every time just one line.

    So i tried to set the size (set size weight 3, height 1, deep 0), but then it enters 0-0-0.

    Has anybody experience with my problem?

  • Hi,

    ok all mistakes corrected and now it's working like I wanted

    Description:

    2D-Array, a new Y-line will be created, the oldest value will be shown and if accepted, it will be deleted

    http://1drv.ms/1UNA6yt

    RamPackWooble Version - (Thank you for your sample/help)

    1D-Array, new X-Variable will be created, the newest value will be deleted

    https://goo.gl/wQW4KI

  • I hope this will come back again, because all the samples programming saved on an extern Server will be lost with time.

    (e.g. I posted the URL of a sample, but I'm sure that I won't keep it for several months)

  • 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()

edwardr's avatar

edwardr

Member since 15 Dec, 2014

None one is following edwardr yet!

Trophy Case

  • 10-Year Club

Progress

10/44
How to earn trophies