AllanR's Forum Posts

  • 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)

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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...

  • you must have shrunk it to make room for the image... to get it back, put your mouse over the right side of the editor window - until your mouse pointer turns to a double arrow. click and drag to the left to bring it back into view.

  • I just update the file at the link above...

    rotate works properly now, resize doesn't glitch out any more and works fine - until you rotate the object upside down. then resize is opposite to what it should be... so I will have to think about how to resize regardless of angle.

    plus a few other minor improvements.

  • Alon here is a start... it is pretty close to what you are after, but obviously the rotate and resize are very glitchy and quite often don't know which way you are trying to go and freak out.

    I had to start it in C2 in order to use families, then had to move it to C3 to use Create by name... but now it is getting close to the limit of what I can do in the free version.

    I haven't put in any comments yet, so it will be pretty difficult to figure out what is going on... if I have more time later I may work on it some more (I need some of these concepts for a project I am working on).

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