TiredSundew5639's Recent Forum Activity

  • Basically I made it so that the arrow orbits around the soul and when I press z it makes the arrow stop, what I am having trouble with is making it so that when the arrow stops, it makes the burrow entrance stick to the wall it is pointing at and at that specific point the arrow is pointing

    In the image I gave the arrow the turret behavior because I was seeing if it could maybe see the wall and know what area to put it in, I know I am probably not making sense but I don't know how to describe it. If you want I could try to share my project so you have a better idea about the code but I am having difficulties trying to make a copy of the project and put it on the post

    This is what happens so far, so it does go on the wall but not the one I want, I want it so the burrow goes to the wall that the arrow is pointing at, the problem is I don't know how to tell the system when the arrow is "pointing" at something

  • Basically for the adaptation soul, I want it to be like a portal gun, though I'll work on the whole portal part of it later. For now I am trying to make it so that once the arrow stops, it makes the burrow entrance go directly to the closest wall and rotate itself based on which wall it is on. The biggest problem is how to tell the system if the arrow is "pointing" at something or not.

    Thanks in advance!

    Also, I don't know how to share the project and I don't know if what I did worked or not, so if you can't access the file please tell me how to put the project on here.

    Snubs Fight (6).c3p

    Snubs Fight (6).c3p.zip

  • It works now, thanks!

  • Ok thanks, I will try it out and to avoid confusion in the future should I share a copy of my project?

    also in the code you wrote what is "s"?

  • Basically I got the item thing sorted out except for major thing, in order for me to get rid of the word (like "Pie") I use the replace expression to replace that word with spaces, and that works fine, IF there is only one version of the word, but for me a bunch of the items are the same in terms of names, so when I replace the item (like S.Piece since it has three of them in the item text) if gets rid of ALL of them, and I want it so that it gets rid of only one. The main problem is that I don't know if I should use replace expression but instead of just the source being Itemtext.text it is something else like array variables or something, but I can't figure it out. I also don't know how regex works and if it would fix it but that's why I am asking if anyone can help

    TLDR: the replace expression for my items in a certain text sprite gets rid of all instances of the word instead of just the one word at a time, and the only thing different from the words are where they are and their array value, but I can't seem to apply it to the expression

    this is how I replaced the items (note there's only one instance of the pie and I.Noodles and I did a bit more spacing for the pie so it wouldn't also get rid of "pie" in "S.Piece", but the ones that do have multiple things are the L.Hero, which has two, and the S.Piece, which has three)Note: I am not showing the code for things like the snow piece because I did not make it yet and the image is just an example of what the code is like

    Again, I know I am probably showing too much information, but I just don't know how else I should describe it and what information is helpful or throws people off.

  • It works now, thanks!

  • The first one was because I was testing it and I forgot to change it back

    and I think the reason why I did Item.text is because it didn't work otherwise, but I will try it your way

    I just tried it and so far it makes it so that I can't even heal anymore when I changed the index value from itemtext.text="pie" to one, though there might be a mistake in there so I will look again

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Basically I figured out how to make it so that when you press z on certain coordinates, it heals you a certain amount, the problem is that I can't seem to figure out what value to set the array numbers and I am trying to make it so that when an item is used, it replaces the item with blanks. I got that part figured out but I don't know what values I need to set it so it will work, because if I just say to replace the text when it is at zero, it automatically gets rid of the text without me using the item, and when I try to make it so that when the item is used it sets the value to one, nothing happens and it doesn't replace the text, I know it sounds complicated but I don't know how to describe it. I also found that the array I am using is not the height and width I made it, though I don't know if that is affecting it or not.

    the array in this one are the numbers I want to change

    This is the image that shows what the item does

    and this one I can't figure out what value to set it at so that when the item is used, it replaces the text with blanks.

    this is the first set of items that are in the item text sprite and I have labeled which one is which number value on the Item1 instance variable

    this is the second set of items

    I know that I am making no sense, but I have no idea how to describe this, and for all of you who decide to help, thank you

  • Update: I have done some arrays and I must say that they work well! the only thing I have to do now is apply all of it to the other items and figure out how to make it so that once an item is used, it will delete certain text like "pie" if pie is used, maybe I could make a separate text sprite for just items and not the menu, I don't know, but hey I have gotten one massive pain in the butt out of the way, so again thank you!

  • Actually I just thought about something, I know that arrays work for sprites with different animations, but what I am trying to do is that the items are text from one sprite, like this

    so I was wondering if the array would work and store multiple values in only one sprite (the text box) and how I can store values like health and if the item was used in some words like pie and what not, so does it work for texts like that and if so how can I code it?

  • ok, I'll give it a shot and thank you

  • So how would I do it? I have never done arrays before and I don't know how to start it and code it

TiredSundew5639's avatar

TiredSundew5639

Member since 21 Jan, 2020

Twitter
TiredSundew5639 has 1 followers

Trophy Case

  • 4-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies