jdejean's Recent Forum Activity

  • dop2000 thank you very much for your answers, I know where to look at now :)

    I saw the tutorial you mention before, but I didn´t know it was a real solution to this, I am focusing on your suggestions now. Thanks.

    I have also seen rex´s plugins for firebase. But with firebase, and gamesparks, I get los in the process once there. I got c2 to connect and return a connection message, but don´t really know how to follow inside both of those services :P

    MySQL database seems to be the clearest option from ignorance, and since I do have a hosting provider I´ll keep that path, so far I got stuck in this step, s1.construct.net/images/v680/uploads/articleuploadobject/0/images/16867/tuto8.jpg

    my phpmyadmin looks different lol

    Anyway, I´ll keep you guys posted, hopefully I can get this to work... If not, ïll teamview all pcs together and that´s it.

    Thanks!!

    ps, This seems to be a nice project for everyone´s local hospital, shelter, church, etc.... If anyone is interested, I´d love to share my construction blueprints and ideas :)

  • I know it sounds like the stupidest idea.. or at least contrary to what we usually want.

    Hope I can make myself clear, It´s hard enough when speaking another language, imagine when I´m not really sure what I am talking about. Lol!

    My question is, can we share data to be loaded as a variable in all pcs playing without having to think this as a multiplayer game? It doesnt doesn´t need to be in real time, but, maybe every minute or so.

    Maybe I am looking at this from a dumb angle and you guys can help me out.

    My project/idea: (I´m ok with this, so far so good)

    We will be having a donation day, with physical bins where you can donate a) food, b) toys.

    They will be placed in different places, so no chance of sharing a local network

    Each bin will have 4 arcade buttons attached, pc, screen, etc.

    When you enter food (cans), the button triggers a keystroke "7" when you enter toys it will trigger a keystroke "9"

    When you take something out, will trigger "1" or "3" Each keystroke adds or subtracts to each global variable.

    For the next steps, I have a workaround. I will teamview all pcs to one, so... problem solved. They will all be playing the same game, on the same pc. :P

    But, to make things right and learn in the meantime... Questions time!

    Everything is working perfect on each "station", however, I´d like to be capable of updating each other

    1) Is it possible to store this local variables on a server, so they can share the same data without going through the process of setting a multiplayer server, or... whatever that takes more time than what can be afforded here?

    I have tried to set data to google spreadsheet using this amazing tutorial: construct.net/en/tutorials/sending-data-from-construct-23-to-google-spreadsheet-1447

    I can write data, but don´t know how to retrieve it. (or if it´d be useful in this case)

    I have tried following firebase tutorials, but I don´t even know if I´m peeing in the right bucket. way beyond my scope.

    CAn I get this data from a txt file or something online and just read it and update it every x amount of time?

    2) Question 2 When I save this on a localstorage, the numbers are ok, but I´d like to know if there is a way to regenerate the sprites on screen that were generated on each keystroke.

    My capx: drive.google.com/file/d/1NB8CfPCOtbBhKs3LEEPldRro96RJE09E/view

    Thank you very much!

  • thank you so much for your answer!

  • I have another question, hope you don´t mind... But please, before answering, if it´s complicated, just ignore me, and tell me before I get into something I won´t be able to understand so I don´t waste anyones time. lol This is just curiosity, not a project.

    Is it possible to store data online so everyone uses the same data?, I can save locally, but I´d like to know if its possible to "play" on the same project without really being a multiplayer game or dealing with firebase, etc.

    Let´s say for the sake of this example I want to access the same game in the morning from a pc, in the afternoon from my phone, maybe tomorrow from another couuntry, etc and find this data always stored in the server where I upload it, no matter who touches it... a co-op clicker..

    here´s an example

    badablu.com/desarrollo/records

    badablu.com/desarrollo/records/records.capx

    Thanks! :)

  • Thank you so much for this extra explanation :)

    I can now visualize a little bit better what was done, hopefully understanding it for future implementations.

    Thank you!

  • Thank you so much for your help! Your example works great, I had to change the way words are replaced in the second layout, and now seems to work ok :)

    Since you took the time, would you mind explaining your logic and how you thought this? Not really the technical part wich I can see it, and eventually learn it through tutorials, but the logical part, your thoughts before typing.... seems I had trouble understanding the order things should be thought before even opening construct.

    My call was to have multiple textboxes, on each change, update a global variable and store it on a localstorage+array... then, on the final text, use those global variables to replace a string inside the text.

    I think that, somehow, I overcomplicated things even before starting. Lack of technical knowledge, of course, but maybe also logical thinking. My example was working, but compared to yours, was long and complicated. As far I as I see, yours is simple and straight to the point.

    If you could just tell me how you did plan it in your head, would be a great way to learn something that I cannot really learn from technical tutorials.

    Thanks so much, and have a great week!

  • Just saw your file, thank you. In your file I don´t get to replace texts, even when trying to mix it with mine, I can´t find how to specify wich line of the arrey shuld be replaced

    Is it working for you ? Thank you

  • Thanks so much for your answer,

    I added the line you suggested, but when I reload my browser, the data goes back to the original instead of the new one entered...

    any idea on how can I overwrite it each time I enter new data?

    Thank you so much

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could also detect text change. This way you could also have presetted text in your textbox

  • Hi everyone, i know this has been explained several times in the forum, but I´m fighting with something for the last two days... The idea is Kids read "customized" stories with their name, moms name, etc. One on each layout so they can have a "minigame in the background" and a layout for entering their data to be shown.

    I´ve seen this amazing tutorial construct.net/en/tutorials/arrays-beginners-170/page-3 but still can´t connect my brain cells with this.

    I have 12 textBoxes where users type their data into, a save button, and a gotolayout button. ok so far

    Users fill the 12 textboxes, on each change, 12 globalvariables get updated. ok so far

    When users click "save", An array gets updated on it´s 12 "x" values.ok so far

    The user clicks wich for they want to see, they click gotolayoutX Ok so far

    They find a text with strings to be replaced, they get replaced using Replace. Ok so far

    Now I need to save this &%$ so next time they use the app, they don´t have to type everything again (unless they need to)

    So, first layout, Localstorage, check if "data" exists, if so, load "data" from Array.Asjson, and place it in the array..... HERE I GOT LOST, REALLY LOST

    if anyone could explain how to work this out as if I am stupid... I´d really appreciate that.

    Was sending it from 12 user imputs to 12 globalVariables to 12 Xs in array a stupid move?

    This is my .capx

    drive.google.com/open

    Thank you very much, I´d really love to understand this %$# and stop asking over and over ;)

  • kingpirux Thank you so much for your answer, I´ll keep it in mind. At least now I know what to look for when trying to imagine this kind of projects. Thanks!

  • kingpirux Ví tu perfil y me di cuenta que somos compatriotas, ja! Impresionante tu trabajo, felicitaciones!!

jdejean's avatar

jdejean

Member since 12 Jul, 2016

Twitter
jdejean has 2 followers

Trophy Case

  • 8-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies