PapitoMyKing's Forum Posts

  • And I set Minify mode: none.

  • Hi,

    The game runs fine on preview mode and remote preview, but when I upload the HTML5 files to itchio, I get a "Failed to load resource 403" error regarding my scripts main.js and global.js.At the start of main.js I import from globals.js.

    The main.js files is under the "Scripts" folder, and globals.js is under the "Files" folder.

    I don't use workers, and the script type is module. All relevant pics:

    Thanks!

  • Very thoughtful points, thank you.

  • You are the boss, thanks!

  • Hi,

    So I need to dynamically send objects to the top or bottom of the layer.

    When the player's Y is greater than the bush's, put the player on top, when is lower, put on bottom, like the pictures:

    The only way I've found to make it work is a for each loop that happens constantly, this is of course awful performance-wise:

    I've tried to only do it when the player is overlapping the bush, or every 0.1 seconds, but nothing else works.

    Thanks!

    Tagged:

  • Hi,

    So I'm making a game like Stardew Valley. I'm thinking about the implementation of seasons, and the best way to go about it visually.

    Should I clone the layouts and change the tile set to reflect winter, autumn? (multiplying the layouts by 4 seems like a nightmare, and then I have to recreate the player crops, etc.) Or should I keep the tile sets all invisible or outside of the screen, and when certain season comes up, I make it visible?

    Thanks!

  • Sad...

  • Hi,

    Halfway through my game, the iPhone stops recognizing touch and the game becomes unplayable. I am using a chrome browser on iPhone X. Has this happened to someone before? Is this a known bug? On android the game plays well, so it is not my mistake.

    Thanks!

  • For those curious, to fix it I had to double dip and on the event sheet put "Set diagonals enabled", even thought they are already enabled on the editor.

  • So, I'm using moveTo with pathfind(direct) to move an enemy, there are no obstacles, but instead of moving in a straight line, the path is in "L" shape all the time, like this:

    But I want it straight like this:

    Diagonal direction is checked and enabled on the pathfind behavior. Any ideas? Thanks!

  • Again you didn't explain what you're trying to do, if you need help with implementation of a design then we need to know the design. One array per skill, what is a skill? If you have certain things that happen per level increase of a player then you could fit them in one array.

    Sorry. So I want a level up system for the different skills of the player, critical chance, damage, etc. I want each skill to require certain points of experience:

    Level 1 critical chance = 10% chance to crit. 100 exp points required to unlock.

    Level 2 critical chance = 20% chance to crit. 300 exp points required to unlock.

    And so on.

  • It would make sense if the columns were levels, but not sure what you're trying to do here you didn't really explain it?

    If the columns were levels, then I would need one array per skill. If I have 30 skills in the game, would need 30 arrays hanging around, but maybe that is the best way.

  • Hi,

    So I'm doing a leveling system for my rpg/ farm sim. And I'm thinking in the following way of doing it:

    Explained Array:

    critical chance - 10% chance - 20% chance - 30% chance - 40% chance - 100 exp for lvl 2 - 300 exp for lvl 3 - 500 exp for lvl 4 - current exp

    And the picture of the array in-game:

    Is there a better way of handling this? My implementation rubs me the wrong way...

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I realize this post is rather old, but can you either of you walk through how you got this working?

    When I tried to follow this I get the same web3 error. I did double check the case.

    OK, I got it working pretty much. But I had to go into classic mode for script type. How do we get it working in module mode as classic will be removed at some point

    This is a question for Ashley

    A robust support for web3 and crypto would be a homerun for C3.

  • Ok, so for small games it is better to keep saving as single file, got it, thanks.