BadMario's Forum Posts

  • That is a tough one even for teams of professionals. It may be easier to design the game around this and avoid or at least minimize the chance of enemies overlapping each other.

    If you decide to tackle the problem be prepared to spend a lot of time on it. There are faster solutions, but they will not work 1/2 the time

  • I do it like this:

    have a global var. strikes

    Create a sprite with 4 animation frames, set frame rate to 0 call it xxx

    first frame is empty square, second frame ( frame 1 ) is a single X, then 2 xs, and last frame 3 xs

    Then all you need to do is one line xxx.Set Animation Frame to strikes

  • But there still isn't reload images feature ( which Construct 2 can do ). Or I can't find it

    Is this some limitation of being a browser based app, or what?

  • Since you can type javascript code directly in Construct 3, shouldn't we be able to just use Google sample code and make it work.

    Just asking, haven't actually tried it, but it sounds like it should work

  • You don't

    Instead add extra point/points where you would want this polygon, then create a simple square sprite and attach to this point/points. You can check for collisions against those

  • I did not use offensive language,

    That phrase is not scheduled to become offensive until summer 2022

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why is everybody so full of **** ( I don't mean people posting here, but google, people writing these laws and people obsessing over it )

    A simple text saying clicking on a play button you consent to ( insert ad consent requirements text )

    Perfectly legal and enough. There is no need for ******** SDK and this and that.

    Every time you install any app is asks for permission to use your camera, microphone and all kinds of crap, and you can choose to install or not. Clicking a simple play button in a game, with ad consent text next to it ( or a pop up ) is exactly the same thing.

    You can choose to play or not

    People coming up with these laws have no ^%$&^ing idea what they are talking about and Google has even less of an idea of how to handle it.

    Admin note: please don't use offensive language as per the forum & community guidelines

  • Anybody knows what the situation is with Gamedistribution.com. I have read so many complaints about them from developers, then last year they bought Spil games which was great to work with. So if all the stuff about them was true it sounds like the worst portal possible bought one of the best portals and now WTF kind of.....

    Anyway, they seem to get your games spread around, but they do not allow outgoing links nor branding, so if it's true that they do not pay on time or at all, then what's the point. You get no money, no traffic and nobody even knows it's your game.

    They have admitted being late with payments and other errors on their part, so it's obviously not just a few grumpy developers complaining. Something was definitely fishy there.

    Have they gotten better this year?

    Poki you mention, Crazy Games and GameMonetize have good reputation as far as I know, but with Crazy games also no branding and you only get paid if your game is exclusive to their site ( or something like that )

    New Grounds is still there, although it seems to be going further and further into the adult anime/game territory.

  • Add an array with a width of 30 and a variable number

    for start index 0, endindex 29

    number = int(random(loopindex))

    Set Array.At(loopindex) to number

    far greater chance of filling the array with lower numbers, and 30 may come up only once, probably not at all.

    Then you would just pick a random number from this array

    Probably quicker than advanced random plugin which I have never needed, but depending on your needs which are not 100% clear you may be better off with the plugin

    a single action like choose (1,2,3,1,2,1,2,1,1,2) can do the job too In that example 1 has a 50% chance of coming up, 3 has only 10% chance

  • When they become invisible move them off screen, -5555 Y or something so there is no way to click them. When they need to be visible move them back to where they are supposed to be.

    For this you will probably need to add them to a family so you can just move the whole thing out of the way MenuFamily > set Y > Self.Y -5555 and Self.Y + 5555 before making them visible. Should work

  • I always use HD 1920 x 1080 backgrounds, then scroll to 960,540 at start of layout so it is exactly in the middle of that 1920x1080 area, so if a game is in landscape mode and game widow set to 960 x 540 or 800 x 450 ( both 16:9 ratios ) there is plenty of stuff on all sides, so no bars will show.

    Works in portrait mode too, so if your game window is 450 x 800 you have 140 pixels of background on top and bottom. If you need more just adjust your background to cover more.

    If you do not use one large background image, then just fill it with some objects which I believe is what dop2000 is saying.

    Use scale outer of course and you have to put all your stuff in the middle since you are scrolling to 960,540, you can draw a rectangle the size of your game window and place it at the bottom layer at 960,540 position as a guide

  • Then a server cache problem possibly.

    I have encounterd this before, but since then I always delete everything and upload new files, have not had the problem since.

  • Export a new version, delete everything in the old folder, then upload the new version to that old folder.

    Now if you empty your browser cache and go to play it, it should all be normal. Unfortunately everybody else who has visited the site recently may continue to experience the same issue until they delete their browser cache or until it just goes away on its own ( after a few days browser may stop showing cached images and show the updated version, this would depend on various settings I guess that you have no control over )

    I am pretty sure this is caused by messed up sprite sheets. Script is pointing to a sprite sheet that looks different from the same named sprite sheet that exists in your cache, so you get a different/incorrect image displayed. Each export may produce different sprite sheets, but they will have same names

  • create variable shotRate

    then system action every shotRate seconds create bullet at whatever x,y

    Then you can change shot Rate variable to fire bullets at a slower or faster rate

  • Construct 3 export index.html is different than Construct 2's and seems that there is stuff in some script file that does resizing. Maybe Ashley can advise on how to accomplish this.

    Anyway, when you view HTML5 exported game it will resize smoothly as you resize browser window. How to do this when the game is embedded within an iFrame ( now you are resizing the page that contains the iFrame ). For mobiles this seems like a necessary thing.

    I have found a few different solutions, but there are problems with each, like often it will resize when you make your window bigger, but will stay that way if you flip the phone, or won't resize back. I have noticed this a few times even when viewing games on iPhones normally ( not iFramed )