Fengist's Recent Forum Activity

  • haven't worked with loading arrays from json but...

    since you're using AJAX to get the json I believe the json will be in the ajax.lastdata.

    Try this.

    Working_Word_List_Array | Load from JSON string Ajax.LastData.

    And you're likely to run into another problem. You're firing off a second ajax request the instant the first comes in. Have the on ajax completed fill the array with the Ajax.LastData and then, just below that, send off the next ajax request.

    I think what you are assuming is that when the ajax request comes in that it stores that data in the 'tag'. It does not.

  • One issue with IAP is you have to have a backend, and that requires server storage, and that's a whole other can of worms.

    Speaking of currency, something like Facebook's Crypto currency might be a viable option.

    Screw bitcoin though, that stuffs toxic.

    Now there's a thought, let's just add some JS crypto mining code to our games and... problem solved! Then again, we'd all need to make games about snails so that the frame rate keeps up.

  • Well, one thing you may not be considering is that once a company gets into processing money transactions a whole new can of worms open up. You essentially become a banking institution. And that requires a whole new team of experts to manage and a whole new set of constantly changing regulations to keep up with. I'd rather the guys focus on what they're good at, making a programming IDE.

    And yes, I understand that learning other languages like PHP and JS for that matter can be a daunting task for those that have never written code. However, you write code any time you use Construct. If you've made even one game you already understand the logic of booleans, for loops, while statements, string variables and a whole host of other programming standards. Learning a new programming language is just a matter of syntax. When I first learned programming in BASIC on a TRS-80 Mod 1, it involved me sitting in a high school chemistry room closet with the computer and the manual for six weeks. And many of those terms above, I learned from that experience and still apply to languages today.

    Construct will never be a end all be all solution. It can't be. No IDE is. Even high level languages like C# still need external resources to function. The program I told you I sell, it's written in Delphi, a flavor of Pascal. But I still need PHP scripts on the back end to handle everything from registrations to help files. The game I'm working on now, it requires a PHP back end to handle registrations and send HTML back and forth to the client. And most likely, I'm going to need to learn how to create a WebSockets server for the chat feature using either C# or node.JS.

    You can create a game in Construct. That's what it's designed to do and it does it well. If you want to get serious about this and make it a livelihood, you'll need to crack open a few books.

  • In that case, there are other possibilities. I know Google play support IAP and I assume others like the Microsoft store does. But, you're talking about pure web based games so, here's one option.

    PayPal, and I assume others, have what's called and Instant Payment Notification. The way the IPN works is, the customer clicks on the PayPal button and it takes them to the PayPal site to make the purchase. Once that transaction is complete, PayPal contacts a URL that you designate. In my case, I have it contact a PHP script. With the data that PayPal sends, I generate registration keys for some software that I sell and then, add all that data to a MySQL database.

    Google also offers something like this with Google Pay

    support.bluesnap.com/docs/google-pay

    So essentially, there are payment methods out there that you can customize to do pretty much whatever you want, it just takes the skills to make the back end work.

    As for locking into one particular payment method, I disagree. One of the axioms of the internet is that nothing lasts forever. The minute you lock yourself into one provider or source, your success is bound by their success. The minute they fail, so do you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • support.google.com/adsense/answer/1705831

    Provided of course that you can come up with 1 million impressions per month...

    pfft.

    But, some quick googling shows lots of possibilities. This company even claims to have a C2 plugin.

    wanted5games.com/developers

  • You just reminded me of an old space game that I think was on the Amiga. You travelled around space, meeting aliens and learning how to communicate, trade and fight them. You had a crew with various skills and you could hire/fire crew at the space station. You could land on planets and collect 'resources' by shooting them and some resources tried to 'collect' you. Along with being a shooter game it posed a moral dilemma. Near the end of the game you discover a planet that's utterly loaded with the rare resource you've been using to fuel your ship. And shortly after that, you discover that this fuel is actually a sentient life form that has a much, much longer life span that you and as a result, moves at a much, much slower pace, making it appear inanimate.

    Now keep in mind, I haven't seen that game in 30 odd years but that simple moral question it posed... well I still remember it.

    *edit

    Found it!

    https://en.wikipedia.org/wiki/Starflight

    *another edit

    Lol, and apparently you can still play it here:

    https://archive.org/details/msdos_Starflight_1986

  • Good to hear. I double checked this morning on the desktop and it's still crashing with a google sad face. Because it's running in an iframe it wasn't giving any errors so, I tried reloading it as full screen and got this error:

    Uncaught (in promise) DOMException

    Some quick googling tells me that this may be related to the audio and the fact that it's running in an iframe and you're forcing it to auto play that audio. Google changed the way it worked last year:

    https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

    Now, why this works on my laptop and not the desktop, I have no idea. I did test it in Edge on the desktop and it loaded just fine so I'm guessing it's not a hardware issue.

    One thing I've done in my code to combat this is to put a 'click to play' on my loader screen. Chrome is now requiring interaction from the user before playing audio.

  • If you're running Chrome, hit f12 while viewing your project. In particular, check the 'performance' tab. Chrome can profile your game and give you a chart showing it's memory usage. If you click on the memory tab, it'll actually tell you whether your project using more or less memory over a set time period.

  • On the laptop

    153 = 38661

    154 = 49828

  • And on the laptop, I played for a good bit and didn't see any perceptible speed decrease or increase in memory use.

  • Just chrome on a pc.

    And, for whatever reason, it crashes on my desktop but runs on the laptop. Both are using the same version of Chrome.

  • > Excellent! And when you're all done could you please box up your CPU and ship it to Iowa? My 8 core 4ghz machine with 32 gigs of ram still only managed 129k in r149. I want your toys.

    Heh, my office desktop has an i7-6700K 4 GHz with RAM running at 3 GHz, and I can get 344k with the latest release 😉 (that's on quadissueperf)

    :P

Fengist's avatar

Fengist

Member since 6 Nov, 2015

Twitter
Fengist has 5 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x3
    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

16/44
How to earn trophies