AllanR's Recent Forum Activity

  • this is based on a couple of samples I have seen to make a snake-like trail - you use an array to track the position of the ball (and paddle) and then set the trail to positions in the array. that is how the trail bends when it bounces off of something.

    I used particles to make the sparks when the ball hit something, and randomly changed red, green, and blue values to make the colours change...

    kind of close to what happens in the video, but this is just a quick and dirty attempt.

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

    in the video, they clearly use additive blends and screen shakes to make it more dynamic - I didn't try that.

  • if you want the game to run in a window on the main page, then it does have to be in an iframe (as far as I know).

    if you just want a link to the demo, then create a subfolder on your site and put the exported game in the subfolder and a link to it on the main page.

  • simulating fluids in real time is difficult - and very demanding on hardware (which means it doesn't work too well on mobile devices).

    the lava in the video looks like it was pre-animated, because the ripples are always exactly the same. Doing "fake" ripples with an animation like that greatly reduces the work load for the cpu and will then run fine on weak hardware.

    the last time I played around with water was a few years ago - see this forum thread:

    https://www.construct.net/en/forum/construct-2/general-discussion-17/simple-water-shinkan-101672?kws=waves

    I don't know if any of the other samples are still available, but the demo and download in my first post there still work... (click on the screen to make a splash, or press space bar to make waves. I think it requires the Paster plugin)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • there are some great tutorials to get you started, plus plenty of experienced users in the forums here :)

  • you wont notice the difference, but people who play on high-end monitors with really fast refresh rates will see the game the way it is intended. Without dt, it would be unplayable - and you will get people saying your game is too buggy to play.

  • I use MySQL a lot - and love it! It comes with most web hosting packages, so if you have/want a web site - it is no extra charge. And you completely control your data.

    I guess the down-side is you are responsible for security, creating queries, the PHP scripts to pass data back and forth...

    I haven't used Firebase, so I can't comment on that. It might be a better option if you don't have much database experience, or don't want to worry about all the ways a site can get hacked.

  • I have used arrays with tens of thousands of elements without any trouble - even on mobile.

  • the pick all event fails because there are no instances to pick, so the action that displays the pickedcount doesn't run.

    you could add an else to the pick all event that sets the text to "no instances!"

  • if the origin is in the middle of the fish image, then if the fish has a Y value of 0, then the top half of the fish will be off the screen like in the image).

    So, the minimum Y value should be Fish Height divided by 2.

  • like Dop said above, the size will be determined by the assets you include - the slight overhead NW.js adds only happens once. If you only added more code from here on out, the final file would grow a negligible amount.

    The assets would add the same amount to any other output from any other programming system.

    I have been a programmer for 30+ years- every system has strengths, weaknesses and limitations. You made a great choice with C3! It gives you the opportunity to accomplish your goal. Any other option I know of would be IMMENSELY more difficult for you. Supporting multiple platforms is always a nightmare, but C3/NW.js is as easy as it gets.

  • just tried it on my PC and then on my iPhone - it worked on both. Both prompted that it wanted to know my current location, when I said ok, accurate data showed up (except my pc said elevation is 0).

  • the main time I use a dictionary is in a container for an array. I load database records from a MySQL database into the array, the dictionary gets the field names and their position within the array. Then I can reference the field names using the dictionary - which makes the code much easier to read. And if I change the query that reads the data, the dictionary automatically adjusts itself so I don't have to make any changes to the code.

    Other uses for a Dictionary could be to hold a lot of stats for characters - each one gets its own copy. That way if you have a bunch of different types of characters, and each one have different stats, you don't have to have give the family all the possible variables - just a dictionary that can be customized for each type...

AllanR's avatar

AllanR

Member since 21 Nov, 2013

Twitter
AllanR has 23 followers

Trophy Case

  • 11-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
  • Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies