PapitoMyKing's Recent Forum Activity

  • Thanks for the suggestions, but I get the same "not constructor" error. I know there are other libraries for ethereum besides web3, I will try those, really want to make this work.

  • I have no idea why my post was deleted... maybe the forums are bugged.

    So, I moved the web3 file to the project files folder, and keep my main js file in the scripts folder. I wrote this:

    runOnStartup(async runtime =>
    
    {
    
    runtime.assets.loadScripts("web3.min.js");
    
    // This code runs on startup with
    
    // the 'runtime' variable available
    
    });
    
    web3 = new web3(new web3.providers.HttpProvider("http://localhost:7545"));

    But still get the "web3 is not a constructor" error... sigh

  • I want to make a game, where at the end of the level I count how many coins the player has grabbed, and then mint that number of my custom token and award them to the player. I know there are security issues (a player might hack the game and spawn as many coins he wants, or modify the variable, but I'll tackle one issue at a time).

    Turning off worker mode fixed the load script issue. But when I try to use web3 on my custom js script, I get the error:

    "ReferenceError: web3 is not defined"

    This is the line:

    web3 = new web3(new web3.providers.HttpProvider("http://localhost:7545"));
    

    Both scripts are inside the "Scripts" folder, which I have understood are loaded automatically and the start.

    I've been a Construct user for years, but this is my first time using js inside C3, thanks for the help!

  • This is possible in Phaser, but would love to be able to do this in C3 instead.

  • To use ethereum, I need the web3 library, I import it and put it under the "Scripts" folder, but when I start the game I get the error:

    "Failed to load project script 'web3.min.js'. Check all your JavaScript code has valid syntax."

    Any ideas what can I do? Is it even possible what I'm trying?

    Thanks

    Tagged:

  • Bad scirra, bad!

    Please remove the text that exclaims C2 supports exporting to mac. You are doing false publicity.

    Do I look like I have a windows machine and a mac machine in my home network?

    No, I can't just move to C3 because of custom plugins/behaviours.

    Now I look like an ass to my client: "Sure, the game will run on a mac, construct will export it".

  • Hi,

    I want to create a text editor in-game. I want to select a portion of a given text, and make it bold, another portion underline, etc. Any ideas where to start? Do I have to make my own plugin?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That when the player moves, he moves like the game, not teleported, copy every detail.

  • Maybe you should add a bit more info about what you need like:

    What engine, C2 or C3?

    Should it be a simple template to show how the logic works or a fully functional clone?

    Do you want nice assets included or just placeholders you can change?

    Should it be optimized for mobile devices?

    The concept is super simple and is very easy to make.

    http://frozendev.com/demos/santacode/

    That took me less than 10min to make. It isn't perfect but the logic works the same way.

    Hi,

    C2. A template with all the functionalities (the loop block, been able to swap blocks, when there are 3 blocks, if you grab the 2nd one the 2nd and 3rd come together, the 1st stays, the blocks "detect" each other from a distance, etc ), every mechanic copied. I then make the levels.

    Placeholders and then I change it. Touch controls should be enough for mobile.

    The demo looks nice, but the pieces have to be dragged, should be able to be rearranged, and the loop block is missing.

    Thanks, let me know if I'm missing some info.

  • Hi,

    I want to clone Santa tracker, need someone to make a template:

    https://santatracker.google.com/codelab.html

    Would like it asap. I pay with paypal or bitcoin.

    Thanks!

    EDIT: ALREADY FOUND SOMEONE.

  • Hello,

    We are looking for several 3D modelers to join our studio. All the work to be done and delivered online. Please send your portofolio, with your rates per hour to:

    Thanks!

  • Hey guys,

    I'm thinking in making an udemy course about game projects managemet, planning, marketing, etc., the bussines sides of things, there is nothing like it right now. But, do you think it would sell? Is it interesting for you for example?

    Thanks!

PapitoMyKing's avatar

PapitoMyKing

Member since 11 May, 2014

Twitter
PapitoMyKing has 2 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies