StevenAndrewK's Recent Forum Activity

  • Awesome, thanks sizcoz for the reply and helpful tip!

    I guess the other thing I'm wondering is how do I make it so the player doesn't have to click on the textInput box to type? Like the game putting the cursor in the box (for each box that pops up for the next word, and the next word to type) for the player automatically?

    Thanks again!

  • Hello everyone, thanks for your time in advance.

    I have a project I'm working on with a team and we are stumped on a few features.

    The concept of the game is that the player must unjumble scrambled words displayed by typing the correct word in it's proper order. Example being that the image displayed is "TAC" but the player must type "CAT" to progress.

    The problem I'm having isn't with understanding that C, A, and T were pressed to advance, it's the order of letters I'm struggling with in the code. With my current code, players could type TAC or ACT and it will think the player still typed CAT. I need the program to only allow the order of the word CAT as C, A, T to progress to the next jumbled word.

    Does the solution involve strings and arrays? I'm stumped, guys!

    Any help would be greatly appreciated!

  • Thanks alextro! You're right it was super simple. I just don't have the knowledge yet to do stuff like that from scratch. I really appreciate it! I spent way too much time trying to figure it out on my own. Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey! I appreciate your response. I tried fiddling with your logic and looking up linear equations with 2 points. I get what you're logic is going for, I'm just still a bit of a newb and I can't quite figure out how to get the ball.X (screen center)-type function to work. Not sure what actions and assignments would need to be used for something like a screen center function or line.

    Think lerp might be involved here as well?

    Another thing is that even if I get the linear equation to work with a screen center point, I still need to be able to dial in ease in and out cause i don't want a completely linear curve.

    Thanks again!

  • TL:DR, I want the ball to know what size to be depending on it's x/horizontal position, and have it tween smoothly too as it moves back and forth horizontally between both edges of the layout.

    More details:

    I am trying to make a horizontally moving ball object (uses physics for movement) follow a certain scale or size based on it's horizontal position traveling either left or right (and tween smoothly). In the middle of the layout (static screen, no scrolling) is where the ball will be the biggest (about 75-100 pixels big). At the left and right edges of the layout is where the ball will be the smallest size/scale (about 25 pixels small). The ball travels back and forth/left and right over time during play and must be the same size at the same X position every time it travels there.

    See picture for a rough idea.

    Thanks for any help!

StevenAndrewK's avatar

StevenAndrewK

Member since 22 Apr, 2018

None one is following StevenAndrewK yet!

Trophy Case

  • 6-Year Club
  • Email Verified

Progress

7/44
How to earn trophies