TiredSundew5639's Forum Posts

  • Hey everyone, I was wondering if y'all can help me figure out if what is going on is a simple mistake on my part or is there is a slight bug in Construct. Basically what is happening is that when I copy and paste an animation frame with the rectangle select after adding a new, empty frame to put it in, the frame becomes a bit more dull in color, even if it is in the exact same animation. It doesn't seem to be a problem with the sprite itself since I tried it on a completely different sprite and the same thing happened. Thankfully I can just go back, pick the color from the original, and use the bucket tool to fix it, but I want to know why it happens.

    The last two images are the different color values from both the original and copy and pasted frame

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you so much, it works now! Have a good winter break!

  • Also for some reason two of the images I put on are not showing up, so I'll just post them here

  • For some of the attacks I have finished (the one shown) and the attack I am currently working on, both of them use those green platforms shown on the image. The problem is that for some reason, the platforms don't get destroyed when I want them to and despite adding multiple commands to destroy them, only one of each of the groups actually gets destroyed. What's even weirder is that the destroy code block works just fine for the tiny trap jaw ants by just adding one destroy block, but the destroy block just deletes one of each of the instances? How do I destroy all of the platforms and why is it working for the ants but not the platforms?

    Tagged:

  • Looks like you enabled animation preview - see that highlighted icon on the toolbar in your screenshot.

    You should always be able to close animation editor by pressing Esc button.

    I tried pressing esc but nothing happened

    edit: It is somehow fixed, but it only did that after I pressed multiple buttons at the same time for some strange reason, also thank you for the help!

  • I don't know what the heck happened but I was just editing a sprite when all of a sudden my mouse cursor became the move tool that you would get for copying and pasting (which I think might have caused this) and I am not able to click anything to edit the sprite or exit the editor, the only thing I can do is move the image left and right. It is really hard to explain since I can't screenshot the mouse in that state and I can't screenshot the slide bars that appear just above the frames. The worst part is I can't even save my progress at all since I can't exit out of the editor or click anything.

  • You have conflicting event conditions. You have conditions that say if natural selection is greater than 0 then do x, as well as conditions that say if it is between a range of values then do y but it is still doing x.

    You should create relevant sub events under you initial condition of 'Natural selection is > 0'

    You can also remove the every tick condition from a lot of those events as the other conditions will be checked every tick regardless

    Can you give me an example of how I can do this? I don't quite understand what you mean by relevant sub events since I don't know which bits of code I need to fuse together, separate, delete, or make a sub event out of.

    edit: I figured it out, thank you so much!

  • I did that but for some reason instead of it setting it to 40, it sets it to 44

    also how do I make it so that instead of the health bar's width shrinking on both sides, it just does it on the left side?

  • basically in undertale there is this mechanic called kr, which acts like a poison effect. I have figured out many things about it like how it maxes out at 40 kr (or in my case ns) but the problem is I don't know how to make it so that the ns can not exceed 40.

    undertale.fandom.com/wiki/Attack_Types this website goes into better detail about how kr works, and I would like something similar top it

    also, I got my pc to have the file data so I can finally share the project so I can make it easier to help you know what is going on

    drive.google.com/file/d/1DZ5_vfkR5YoruiPKjfyN7dpA9QA1id3e/view

    So basically what the problem is is that I don't know how to make it so that ns caps out at 40 and not just increase infinitely

  • Okay, I will try to do it without the physics first and also I will try to see if I can use my PC at home to post these topics from now on so I can actually share the file and videos, but I don't know if it will work. Also thank you for all the advice that you have given me, because I definitely would not be able to make my game without people to help me like you, have a great day! I will post an update to see if it works in a few days, and maybe even tomorrow.

    update: it is not freaking out anymore, but I feel like it doesn't move like a fluid enough, but that's a problem for another day, thank you again!

  • Introduction and Code Explanation:

    Basically what is happening is 2 sprites that I called VelvetWormSlime1 and VelvetWormSlime5 will go to image point one and two on the velvet worm and pin themselves to it. After that the other bits of the slime go to each other's different ends, with 1 pinning to 2, 2 to 3, 3 to 4, and 4 to 9 (I know that the ordering is messed up but I added 9 and 10 separately and the code was already in) and also 5 to 6, 6 to 7, 7 to 8, and 8 to 10. I then made revolt joints for each of them in the same way as the pinning, which is where I think one the problems starts. Then the 2 slimes attaching to the worm rotate with the sine behavior and than everything freaks out, I sadly can't post a video of it since I am on a school computer so I just took multiple screenshots of what happened. When I get rid of the sine code, it doesn't freak out as much but I need it so that the slime acts like a wave or a rope being pulled up and down.

    TLDR: I made multiple sprites create revolt joints and pin them to each other, and when I make the ones attached to the velvet worm rotate to create a wave or rope motion, the rest of the attached sprites freak out

    Here are some screenshots of the chaos and code, sadly I can't share a video or the project because of this school computer, so I am sorry if the screenshots don't help much

    Tagged:

  • First thing I am going to say is, you may want to take a step back and work through a few more basic tutorials before trying this project. You may not be ready yet. Each answer seems to lead to more questions which means you really could use some more experience with the engine (and game design in general). This isn't meant to discourage you. In fact, struggling with a bigger project than you are ready to complete is the more discouraging thing here and after getting some more knowhow first will lead to a better project in the end.

    That being said, Here is an example file that I hope can show you how to solve these problems.

    https://drive.google.com/file/d/1vXpKAC46NGnCxcb4O7n_P8i31WQ1m9dB/view?usp=sharing

    The game freezing is caused by an endless loop. This means the while loop used to draw your ray is never finding an end point so it is continuing off into infinity. The events that happen after the loop are never reached and eventually the computer will run out of memory. This is solved simply by guaranteeing the ray stops growing at some point. In the example, I give it a max length as one of the conditions for the while loop. Any time you are using a while loop in your game, if the game freezes, the first thing to check is if there is an endless loop.

    Again, for the angle of the arrow, I will have to make some assumptions. I assume you are using the orbit behavior. This would seem to make sense because you want it to orbit the heart. However, some of the functionality of the orbit behavior (the way it rotates the object for example) is not compatible with the result you are looking for. For my example, I found it better to use the rotate behavior and set the origin of the arrow a little to the left of the sprite. To see this, edit the sprite and look at the position of the origin. If you then set the position of the arrow to the position of the heart, the rotate behavior will rotate the arrow around the arrows origin causing it to appear to orbit the heart. I then pinned the arrow to the heart, without allowing the pin to set the rotation, to ensure the arrow stays with the heart.

    There are of course other ways to fix the angle. For example, you could disable the orbit functions rotate property and use events to manually set the angle. But I'm lazy so I would rather not do that extra work.

    You'll notice the player uses a variable to ensure the teleport isn't automatically triggered on arrival at the end destination.

    Ok I did that and it solved all of my teleportation/arrow problems, thank you so much! and I will look through more tutorials to get more experience, so thanks for the suggestion and thank you for being patient, have a GREAT Halloween!

  • You haven't given public access to that project but I requested access. You will have to accept my request.

    That being said, You should take a look at the example mrcgkh posted in this thread. It uses an instance variable that gets set when the player enters the portal and only gets reset when the player is no longer touching a portal.

    It works now, but there is one problem, if I spawn the ray while part of or all of the arrow is outside of the walls, it freezes the game. How do I make it so that it doesn't do that?

    Also I need the arrow to face away from the soul

    like this whenever it is orbiting it

    but no matter what I do it is like this

    and I can't just have it in the right angle by default in the animation because if I do, the ray shoots off from the side and not the tip, and even if I change the angle in the properties area, it doesn't change

  • Without the project, I have to make a few assumptions. What I would suggest first is, make sure your character doesn't overlap the exit portal when teleporting to it. There is a chance that the character teleports but is immediately teleported back to the entrance portal.

    Ways to test would be to disable the exit portal events and just use the entrance portal. If the teleport works, check to see if the sprites overlap.

    If you disable the exit portal events but the character still doesn't teleport, there is something wrong with how your event is set up.

    Ok I did that and disabling the exit allowed the entrance to teleport it just fine, but I don't know what to do next and you said to check to see if the sprites overlap, but if the soul is overlapping it, how can I apply that to the code and fix it, and why is it only happening to the Burrow entrance? Also I got a link to the project and I was wondering if you can access it or not

    Thanks for the help and I am sorry it took so long to reply, I took a break

    drive.google.com/file/d/1zFw6skfVe_VOOjgSqnng4DkrNVOiEZmM/view

    edit: InDWrekt I wasn't able to share the file because when I try to share it with you, it says I can't share to people outside of my school, so I am going to have to go back to showing screenshots. Also I found something interesting and weird, when I swap the burrow entrance and burrow exit in terms of which one goes first (putting one on top of the other)the one on the bottom works but the one on the top doesn't

  • Basically for some reason (even though the code for both of them is pretty much the same) going into the burrow exit takes me to the burrow entrance (so it works) but for some reason if I try to do the same but try to go through the burrow entrance, it doesn't take me to it (that or it just goes there for less than a second and then goes back)

    Also I would share the project here but I don't know how and since I am on a school computer, if I try to share it via google drive it says that only people in my school can access the link, so please tell me how I can post the file here so it can be easier for this and for my future problems.

    I would show screenshots, but I want to wait and see if I can share the project and I don't think the screenshots would help since I can't find the source of the problem

    drive.google.com/file/d/1zFw6skfVe_VOOjgSqnng4DkrNVOiEZmM/view