dantelegaspi's Recent Forum Activity

  • I'm thinking of changing the player ship to a turret and trying to work with that and the text input. Is that a good idea or a waste of time?

  • Don't be afraid that your game idea will not work. Your idea is entirely possible

    For starters, try something like:

    If PLU.text = InputTextBox.Text - > shoot PLU

    I've tried this and I think I am slowly figuring it out. So if I made multiple enemies, would I make a separate text object for each specific enemy, or would I keep adding them to the initial Text Object?

    Also, how can I remove the text written in the text box after the correct code has been inputted? I tried messing around with it through an System then Event, but I could not figure it out.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You'll want to use a text object attached to your enemy sprite in a container.

    When you type, you'll be able to compare the player input to the contents of the text object to pick the matching text object. If that text object is in a container with the enemy sprite, the correct enemy will also be picked. From there you have the proper target picked and you can do whatever you want with it, including get its position or destroying it.

    I'm playing around with it and I don't think I have it quite right. So I make a New Text Object and make the text within it the code, then add it to the container of the specific enemy I want, but then how do I tie that to the Text Input Box?

    Another thing that I am trying to figure out is how to remove the text inside of the text input box after a bullet has been fired. Right now, it just shoots rapidly until it does not match the desired text.

  • Hello,

    I want to make an educational game similar to https://zty.pe/ but I am new to Construct 3 and am having several problems. My game will be for grocery store PLUs and I want multiple enemies to move toward the player, with the player being able to shoot them by entering their specific codes.

    How do I get my player character to shoot only when the specific codes have been typed into the text box? Right now, I know how to get the player to fire if something specific is in the text box, but that does not work for my game.

    I'm afraid that my game idea may not work and I'll have to cut my losses and have only one enemy appear at a time.

dantelegaspi's avatar

dantelegaspi

Member since 6 Apr, 2021

None one is following dantelegaspi yet!

Trophy Case

  • 3-Year Club
  • Email Verified

Progress

4/44
How to earn trophies