ArcadEd's Recent Forum Activity

  • Based on other suggestions, I fixed it by creating a loop using Every X seconds instead.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am creating a loop that is generating images and then taking a snapshot of the canvas. Problem is the loops goes to fast to capture a image each time through the loop.

    I tried the Wait 0.5*loopindex trick, which solves the above issue, however it breaks any other code I have relying on the loopindex. I don't understand why, but when using that wait statement my Loopindex is always 0 (I tested in console with and without the wait line to confirm).

    So is there a way in a loop for it to stop and wait for the Canvas Snapshot to fully complete before moving on?

    I'm taking the snapshot in the loop.

    Outside the loop I am checking for On Canvas Snapshot and doing all the ajax to save the images to my desktop.

    Thanks.

  • Sorry, I went back to your site and reread it more carefully. That's why I deleted my original post.

    Thank you for the in depth explanation. I signed up!

    No worries buddy, I'm always happy to explain. One the new site is fully finished I can start making some tutorial videos that will help clarify some stuff as well. It's why I haven't really been spreading the word too much yet. :)

  • So, you will have only 5 different types? Why would someone want to buy/sell them? What gives one cabinet more value over another cabinet?

    There are 5 Games.

    Each Game has 1,441 NFTs in total.

    8 Rarities for each, numbered.

    For example the base or common NFT will have 1000, so each of those 1,000 will be numbered like 1/1,000, 2/1,000 up to 1,000/1,1000.

    1,000, 250, 100, 50, 25, 10, 5, 1

    Those are the rarities for each game. The NFTs are different for each rarity, having a different background, asset tag and music.

    Typically the rarity gives them more value, or lower numbers in some rarities. With the NFTs holding onto high scores it will be interesting to see how that changes value. Are empty cabs worth more than ones with scores? Are the cabinets with the overall top scores more coveted? We won't know until they are release to the wild, and that is part of the fun.

    When the cabinets are initially purchased they come in a "Crate". When the crate is opened it randomly pulls a preminted NFT from the pool of those remaining.

    People can buy and sell them on the Opensea marketplace.

    Does that answer your question?

  • Hello everyone and how are you all doing? I have been pretty quiet on this forums for several years, but know I never stopped using Construct 2/3. It's still my go to engine for anything 2D. I've mostly been using it to make Board Game helper apps for the last several years (www.edfarias.com).

    Around March of this year I began to think of an NFT project and I wanted to base it around some of my passions, Arcade games and Arcade cabinets. arcaded.io project began and I wanted to share it real quick because it really shows off the power of Construct 3.

    The current website (blue one) is really a place holder while we get the final website built up, which should be coming soon.

    If you are not familiar with NFTs, they are digital assets with proof of ownership via the blockchain.

    Here is a quick video explaining how the project will work. youtube.com/watch

    The NFTs sort of act like a key to allow you to play the 5 games created for this project. Playing the games updates the high score table for your specific NFT (arcade cabinet). You can't play the games unless you own one of the NFTs for that game.

    The software engineer I hired created all the Smart Contracts and a back end that allows me to access them via API calls. It's really pretty slick. I am able to use JS code in Construct to make these API calls that call the smart contracts and make updates to the blockchain.

    The next thing we will be doing is implementing a stream game service (like stadia) to bypass any kind of cheating by injecting code during play.

    If you are interested in the project, I have a discord I started up. discord.gg/SuN4wpMq

    I hope to bring on other game developers in the future if this project grows like I hope it does.

    I'll try to update this thread as things develop. Right now we are working on the new website, getting ready to launch the Promotional Poster NFTs for each game and much more.

    Ashley and team, thanks again for making an amazing product.

  • Yeah, I am in a unique situation where that wouldn't work for me. I need to use Tokencount and the extra commas throw off the count. It's odd, but thanks for the tip!

    I could probably just subtract the amount based on the extra commas, but anyway. I got it working lol.

  • Seems like I always fix my issues after I post haha.

    I was able to use RegExReplace just "" for no flag. So it finds the first on the the string, which is exactly what I needed.

    In case someone comes across this questions at some point.

    RegexReplace (tmpString, "1", "", "") is what I used.

  • Wasn't really sure how to word this in the subject, but basically here is my situation and I'm trying to figure out a work around without doing tons of steps :).

    I have a string for example tmpString = "1,2,3,4,5,6,7,10,11,12,21,101,102,202,1001"

    I want to remove the 1 from the string so I would use

    replace(tmpString, "1", "")

    This would result in the string now being (all the 1's are gone)

    ",2,3,4,5,6,7,8,9,0,,2,2,0,02,202,00"

    if I replace "1," The 101, would get changed to 10

    Same thing will happy when I want to replace 2. Etc.

    I hope that makes sense. Curious if anyone has a trick up their sleeve for this. I though about making it "01,02,03" But the string is being built from array and loop indexes.

    I'm not too familiar with Regex, so maybe there is something there I can use?

    Thanks.

  • another thing that confused me in the past was the Date.GetDay is day of the week (0-6)

    Date.GetDate is the day of the current month (1-31)

    so make sure you use GetDate, not GetDay

    Got it working thanks, it's actually pretty easy. The Date plugin uses Unix Epoch Time anyway, so it was just a matter of using some of built in expression.

    Like Date.ToDateString(timeStamp)

    I ended up not going with the 3 days ago, etc. Wasn't really needed and I think an actual date works better for my needs.

    Thanks for your help.

  • how do you need to format the date? I use the C3 Date plugin, and a function that takes a timestamp and a format string similar to what I use in PHP... no scripting or 3rd party addons required.

    https://www.rieperts.com/games/forum/FormatDate.c3p

    Using the moment library I can format into now like "A few seconds ago" or "3 days ago"

    Does the plugin do that?

  • The tutorial does that. The API file comes from PlayFab.

    I'm struggling with how you get access to the functions in the js file. I imported my js file and when I try to access the functions they don't seem to exist at runtime. Feel like I missed a step.

  • Then you should probably simply use the .then() function.

    postData(...).then(callbacks)

    See documentation here : developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then

    I am, I guess I didn't show my call.

    postData(runtime.globalVars.apiHSURL, {"address":runtime.globalVars.address} ).then(data => {

    console.log(data); // JSON data parsed by `data.json()` call

    });

    So will using the wait for previous action to complete work in this case?

ArcadEd's avatar

ArcadEd

Early Adopter

Member since 3 Jul, 2012

Twitter
ArcadEd has 7 followers

Connect with ArcadEd

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x10
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies