Cumulocyan's Forum Posts

  • dop2000

    Okay, the questions on my previous post have mostly been solved.

    But there's this problem about the boss' angle.

    The boss has a static angle that will never change (because I want the boss to keep standing straight), unless when the boss activates its DASH behavior.

    When the boss dashes, it will adopt an attacking stance first before dashing and once again changing its sprite into a dashing one.

    But I don't know how to change it's dashing sprite angle to face the player.

    Screenshots are inside the drive, I really need help on this one since it's kinda difficult to search for a solution regarding this matter.

  • Update: I have already refined all layouts and gameplay mechanics, so let's talk about the boss fight.

    So, when the boss fight layout starts, I want a cutscene to happen at the beginning. At the start, the camera pans above the player, but it starts to move upwards slowly. The camera then shows sprites of the sperm cell enemy merging together, forming a huge shadow in the water, which will proceed to form the boss, called the Squirm.

    The Squirm will roar and do a menacing attack stance, thus starting the fight.

    The Squirm will have 2 behaviors: 1. Producing sperm clusters that chase the player, 2. Dashing towards the player to hit them.

    If the Squirm hits the surrounding pool borders, it will emit the "Hit Wall" sfx and be stunned for a while. Also, the Squirm doesn't have an HP bar, but it does have 3 Sperm Cores which have to be destroyed via dashing and colliding with it.

    My questions are:

    1. How do I make the cutscene using the most efficient way?

    2. Most of the mechanics here are the same mechanics used in previous layouts. Any methods to copy them inside the "Boss" layout?

    I think those will do for now. I give my utmost gratitude to you for sticking to this project after all this time, and this is the final obstacle to completion T_T

    As always screenshots regarading the boss are inside the drive.

  • dop2000

    Can you tell me what's wrong with my Waterproof Mode events?

    The WP bar keeps getting stuck at "filled mode" and won't reset after WP mode ends. I assume the same thing is happening with the WP variable as well..

    Screenshots are inside the drive.

  • Okay, after 2 hours of coding experimentation, everything kinda works as it should be now. Except for the WP bar, I still can't figure out why the animation gets stuck even after its supposed to be resetted after it has been used.

    Event positions (whether inside or outside a folder, above or below a certain event) definitely matters in C2 and that makes everything a 100x harder for a nitwit like me. I'll update you when it comes to the boss fight coding, thanks for everything!

  • I don't understand the issue. When you use "Set time scale 0", everyhting is paused, including all Wait actions.

    Exactly, which is why I am very, very much baffled by this program.

    Pause events' screenshot is inside the drive.

  • Also I have posted the events for WP Mode inside the drive just now. I have absolutely no idea how timer works.

  • To put the game on pause, set the time scale to 0, either global, or the time scale of all moving objects (player, enemies).

    Also, try not to use "Wait" in game mechanics for things like waterproof mode, because you have no control over it. Use Timer behavior instead, which you can pause/resume/cancel etc.

    Ok, I have organized the pause events so that when it's necessary to trigger a pause, I just have to set PauseActive = 1. But there's another error regarding the death screen. When I tried to set PauseActive = 1 when death screen appears, I assume there was a repeating error that occurred. Any alternative for wait commands for the System object?

    Screenshot inside the drive. The commands for event 59 do not work as expected and give the same error.

  • Good point. I think I have a lot of similar events like that one which I guess is a ticking time bomb.. I still haven't found any issues regarding the activation and deactivation of WP mode but I really appreciate your input.

    So far the only issues are:

    1. The pauses have become really confusing now. Because the item "cutscene" needed everything to stay paused for the duration of the "cutscene", I think I have made some events clash against each other and I don't really know how to reverse the damage and also simultaneously have both pauses (the normal gameplay pause using shift, and the item cutscene pause) work as they should've been. As of now both pauses work, but it results in the game over screen pause not working (only the enemies get paused while the player does not).

    2. Regarding the WP Bar, animations and codes that are supposed to activate it do work. But after WP mode ends, the accumulated WP needs to be resetted to 0

    and I have tried doing that, using the substract event when WP mode begins. Unfortunately the animation gets stuck on "ready to use" mode again but I am not sure about the WP value.

    The capx is inside the drive. If you are willing, please do kindly check it out as my brain is slowly dissolving because of this X_X

  • One clear mistake is event 91. It's executed on every tick, 60 times per second, creating hundreds of wait-threads. You should avoid using "wait" in events that are running on every tick.

    Also, are you sure that animation speed in this WP bar is set to 0?

    If all this doesn't help, try running the game in debug mode, pause it and check all variables etc.

    Actually event 91 works fine, but yeah the animation speed for the WP Bar was set to 1 which makes sense that it causes the animation to keep playing early, thanks!

    I'm thinking of adding a boss fight next. It's gonna be a real pain in the arse to code, I'm gonna look forward to your masterful insights :))

  • Do you have this image point in all frames in all animations?

    Actually, it only needs to be in the default frame/animation, but to be sure add it to all.

    You can also simply position the CD object to (Enemy.x+100, Enemy.y), and then pin.

    Thanks a lot! Your method is working flawlessly.

    Also this might be OOT and I probably should make another thread for it (?), but for the sake of practicality I am going to ask here first.

    I am in the process of adding another feature to the game, called "Waterproof Mode". It is essentially Mario's Star which we know gives invulnerability to the player for a short amount of time.

    To activate the mode, the player will need to collect Experience Points that will be converted to Waterproof Points (which fills up the bar and changing the animation frame. 3 WP = 1st strip, 6 WP = 2nd strip). Gaining 10 points, and then clicking Ctrl will give the player invulnerability and a speed boost for 7 seconds. After which the WP will be resetted to 0.

    So far the only problem that have risen is this : the animation of the WP Bar, or Waterproof Points Bar, keeps playing even though I have made events that should've disabled the animation. As you can see on the screenshot, even though I have 0 Experience Points the WP Bar has already reached its usable stage. (only sprite form though, since technically there is no WP gathered yet).

    Additional screenshots have been uploaded inside the drive.

  • Hey, you are still working on that disgusting game :)

    Add the SpermCD and the enemy sprite into a container. SpermCD will be created automatically for each enemy and they will be logically linked. In "Enemy on created" event you can re-position the countdown above the enemy and pin it to the enemy. You can make it invisible by default and show only when needed.

    Hey, nice to see you again! And yes, this game is now officially my end of term project for my game making class :D

    I tried doing what you said. The SpermCD spawns with the enemies now, but even though I had tried establishing an image point on top of the enemy and tried to Set SpermCD position to object > Imagepoint 2 (which is supposed to be on top of the enemy), the SpermCD still appears in the middle of the enemy? I mean it looks good already :/

    Additional screenshot is inside the drive.

  • Hello, how do I make each enemies have their own floating countdown that follows them everywhere?

    The enemies stay in the pool for 15 seconds after which they dissipate and die. Normally the player can't see the countdown, but after receiving a certain item, they will be able to see if an enemy is about to die 5 seconds before they do. But I just can't seem to make the countdown sprite spawn exactly where I want them to and also make them follow the enemies that spawn them.

    drive.google.com/drive/folders/1sJccsvmnA0O4rx2rBkTU1ixWrvh1-JU7

    Inside the link are 2 screenshots, one which details my event sheet regarding enemy behavior and one which is what I want to make it look like. Thanks in advance.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First of all, big thanks to the Construct community for making this game a reality - I never would've thought that someone with no coding experience nor background whatsoever such as myself would be able to create my own game.

    I made this game for non-commercial purposes, just for my game making subject I've taken recently. I would really appreciate any feedback since this game is still in its larval stage, thanks in advance!

    game-development-06-class.itch.io/pool-flagellums

    Tagged:

  • From event 11 and down you have an 'OR experience > x' condition and when you go over 150 event 11 is always true, and on the right you're setting the animation to Swim, so if your score is 150 it will always try to play Swim animation even if you're dashing.

    Is it possible to have OR blocks and normal blocks in the same condition?

    EDIT: Yay after tweaking some of the events, it finally works! Idk why this setting is the correct one but since it's working I'm not gonna judge

    drive.google.com/open

    Thanks for the giving me some perspective :))

    -Another issue: drive.google.com/open

    The trigger for activating pause is working, but for deactivating it is not..

    The game stays paused even after pressing Enter and the countdown number does not do the countdown. Apparently the Wait command is preventing the deactivation to occur, so countdown is impossible to implement.

    - This one has also been making me bang my head against the wall:

    drive.google.com/open

    Have preloaded the files to no avail. This has happened to me a few times already and I do not know what causes it.

  • Hello, I've been making good progress on my amateur game thanks to some people in this community, ya'll are amazing. But recently I've found an error in the coding that I can't seem to fix.

    Link to capx: drive.google.com/drive/folders/15c9c-_2J4sFjuFhx57SyuyhvEIohvvj0

    So, this is a swimming game. You use S and D to accelerate, and Space to dash for a short period of time. After using it, the dash becomes unavailable for a few seconds before being reusable. When you're dashing, the animation is supposed to change into a dash animation. This works fine when the score is below 150 (150 is one of the checkpoints I've set: Whenever the score passes beyond 150, player speed decreases and enemy speed increases).

    For the love of anything I can't seem to figure out why the animation won't play when the score is above 150. Can anyone look into this and help me? Thanks before!