Ribis's Recent Forum Activity

  • eleanorjmorelHello there,

    I'm open to discussing any budget as long all requirements are met and everything is well documented. Depending on which contract we sign, it is by hours depends on how much it would take so if it. If it is fixed then it depends. If the project stays under 450 hours would be good. I'm looking only for the multiplayer side and some of the feature can be postponed based on how much time it takes.

    I also forgot that I offer %0.02 on the 15% royalty for each item sold in-game for the first year. This can be negotiable based on the main hourly or fixed price.

    If the project goes well as I expect, it would be a long-term collaboration. Good opportunity to join an innovative project using Construct 3. So, for anyone interested leave a reply here or contact me at umbriadesign.it[at]gmail.com. Happy to schedule a meeting during the morning (9 am- 3 pm GMT+1 Central Europen Standard Time) Thanks

  • dop2000 Hello, thank you for the reply.

    The json looks like this and is vaid (checked on jsonformatter): https://umbriadesign.it/nftJson.json

    You can see the raids is being used. I'm trying to understand how I can access the id (the one above token_id) and get the data I want (name = "CryptoPunk #721", traits....etc).

    I'm not good with json manipulation. From my list (the nftList string) I would like to see if there is one in the json, and if there is, get the specific value for that specific item id.

    Thanks again

  • Hello there,

    I am looking for someone who can implement the multiplayer feature in the demo "Toggle Camera Perspective" from the original Construct 3 demos.

    Any framework is well accepted, even paid ones, such as Photon or similar. Please, check out the demo.

    Multiplayer features:

    - anti-cheat system.

    - Global area where people can chat together. These areas or layouts would serve as servers. People explore the map and go in and out from these layouts.

    - If 120 person joins the same layout, limit to 64 or fewer players based on the region. So, the person who lives nearby should be most likely to meet. Similar to the game sky children of the light, where one layout can have a limit of 24 players. The 24 players in this case would be the best match based on location or ping. So, basically there might be 1000 players playing in the same layout but you are limited to see only the 24.

    - People can chat. When a person sends a message, it will appear at the bottom and the character assigned to the person who is doing something.

    - People can add friends. So, the user can have a list of friends.

    - The user can set the status as busy or free. Based on this status, people can invite a

    friend to join the private room.

    - A private room can be joined only if the host invites the player, or the friend can ask to join if the status is set to free.

    - Some mechanics interact with the map itself. For example, if there is a switch the users can turn it on or off and this should be synchronized. Or again, if the user owns one object, be free to move it around the map, and this should be synced in real-time or only when the user finished positioning the object.

    - Integration with Firebase is a plus, but not needed.

    The project should be scalable, meaning that we could have several servers (USA, Europe, Asia). So resources can be added and removed based on the costs. It should be super safe, and the user should never be able to manipulate the server.

    The project is paid by hours or by project with a contract. Paid in USD or EUR. Paypal / Cryptocurrency / Bank deposit.

    Please, contact me at umbriadesign.it[at]gmail.com, or drop a line here with your email if you are interested. Thanks

  • dop2000 Thank you for the reply. I always have problems with manipulating arrays. From the original example which works, the JSON structure looks a little bit different from the nftUser.json.

    The raids is set on the Json, which contains the array taken from the the nftUser.json file. So, I guessed that should be set as it was.

    I tried your suggestions, but I can't make it work. I would be happy if someone could show how the events should be. I will keep trying. Thank you

  • Hello there,

    I have a question regarding the manipulation of a JSON. I took the example from this topic: https://www.construct.net/en/forum/construct-3/scripting-51/parse-json-objects-return-149689

    Here the example I'm working on it, I did several tests but I can't make it work as I want: https://umbriadesign.it/json-test.c3p

    Basically, I need to check if the following json contains a specific id item from a string list. If the json file contains it, then I need to retrieve the name or other parameters of the following id item, if not, just mark as not found.

    I'm working on it. If I make it work I will share it here. Help is appreciate.

    Thank you

    Tagged:

  • Hi Ashley, Thank you for the reply. I was able to set the global variable in the event sheet from script! Thanks again

  • Ashley Thank you for the reply.

    I added the following script which works if I run it on the Construct 3 event sheet adding the script as an action: https://www.construct.net/en/forum/construct-3/scripting-51/set-global-variable-using-149803

    I guess I'm missing something here. If I add the same code on a script.js I get the undefined variable. How I can access or set the global variables in Construct3 directly using a js file? Shouldn't the runtime already be defined?

    Thank you

  • Hello there,

    I'm trying to set a global variable in construct 3 using Javascript (in a script.js file)

    The code looks like this:

    async function get() {
    let url = "https://domain.com/myjsonfile"
    let obj = await (await fetch(url)).json();
    console.log(obj);
    runtime.globalVars.Variable1= obj;
    }
    var tags = get();

    This code log the json in the console, however, when I try to set the Variable1 it gives me the following error in the console:

    Uncaught (in promise) ReferenceError: runtime is not defined

    Note that the function is launched as soon someone click a button in Construct3. I tried several ways but I'm not able to retrieve it.

    The idea is to retrieve the json file using the javascript, then set a global variable and push it to the json plugin.

    Thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • DiegoM Awesome, it works great! Thank you.

  • Is anyone working on this? If someone can work and make a script/plugin that interact with the meta mask plugin to check the nft owned and check the balance I'm ready to pay for it :)

    DiegoM Would you mind to post the projects that loads the web3.js?

    Thank you

  • Hello there,

    I found two Construct 3 projects which generate a pdf. Everything works well, however, I would like to attach a snapshot on the pdf page.

    I have added the script in myPDF.js increatePDF.c3p:

    //import image
    var imgData= runtime.globalVars.imageURLstring;
    doc.addImage(imgData, 'PNG', 15, 40, 180, 180);
    

    However, this doesn't work. I'm not sure what I'm doing wrong. I'm trying to add the snapshot which is in PrintToPDF-1.c3p to createPDF.c3p.

    createPDF.c3p - Here the file that generate the file using jspdf

    This is the other example that prints a snapshot by opening the print option. I would need to invoke the download as soon the user press the button.

    PrintToPDF-1.c3p - Here the file that invoke the pdf print from the snapshot

    If anyone has an example where I can generate a pdf from a snapshot, even better if I can add text (as in createPDF.c3p) on it and invoke the download as soon the user press the button would be great.

    Thank you!

    Tagged:

  • I'm sure there are better ways to do it. The first thing I can think is that you would need two variables:

    - detect in real time which button is pressed (left or right)

    - delayed variable that check evert 0.1 second in which direction the player walk (if player is moving, and right is pressed, then is right. Or, if the player is moving, and is not mirrored, then is right...etc.)

    Then, you compare these two variables to detect when the player changes direction.

    If real time variable is left (the button is being pressed) and the delayed variable is right (because it takes 0.1 sec to turn left) then you know that the player is turning left from the right position. At this point, you can make a boolean which is true, to the action you need to do, and set the boolean back as false. Of course, while the boolean is active you can disable the two actions I described above. When the animation of the player ends, set the boolean to false.

Ribis's avatar

Ribis

Member since 22 Oct, 2012

None one is following Ribis yet!

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies