Pigpud's Recent Forum Activity

  • Update! The codes work wonderful!!! Thank you for your help!! :D

  • Hello lionz, I will try the codes and post a reply when I finish them. Thank you for all of your help! :D

  • So I rewrote the codes and the turning right animation works fine, but the turning left animation won't even trigger. The sprite just freezes up when you're facing left. But if you press right while facing left, the turning right animation plays fine. I'm new to construct so I'm probably missing a ton of stuff, so if anyone has a c3p file of how to do this, it would save a lot of time and frustration. My new codes are as such:

    On left arrow pressed and sprite is NOT mirrored, and Turning right is NOT playing, then set animation Turning left then set mirrored. The same codes for turning right with the mirror changed and the animation set to turning right. In another event, Is turning left animation is playing OR turning right is playing, then start ignoring player input. Then in another event, on turning right or turning left finished, stop ignoring player input and set animation idle. The set moving animation will only trigger if animation turning is not playing as well.

  • Hello lionz Thank you for the reply! So the codes I have now are as follows:

    On left arrow pressed, set animation to "Turningleft" then set mirrored. Then in another event: On right arrow pressed, set animation "TurningRight" Then set not mirrored. In another event, On TurningLeft animation finished, set animation "idle". The same codes then for the "TurningRight" animation. Then I have: Platform on moved, if animation Left and animation right are NOT playing, Set animation "Running".

    It's still not working and is only triggering when I am pressing an the left or right arrow when the "start ignoring platform user input" code is running. (I have a fade on the start of my layout that deactivates the player input while it's running) And even then it's still all wonky. This is so confusing because it seems weird to have two "left" and "right" animations when the system is set to mirror on the keys pressed.

  • Hellolionz! Well the turning animation would be very quick, Like Wario from Wario land 3, or like Clara Mae from Night in the woods. I just would like my sprite to seem more real rather then always just going from left to right without any sort of "middle" animation to make the transition smoother.

  • Hello, I was wondering if somebody could help me code a turning animation. I can't find a simple step by step tutorial on how to do it. I have turning, walking, and idle animation and the codes: on right arrow pressed set not mirrored and on left arrow pressed set mirrored. I am guessing that I will need a string variable that tells left from right.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you again for your time! :D

  • Hello! I don't know how to upload a C3p file but I just fixed the issue with unchecking the pixel rounding.

  • Okay wait my bad!! One of the codes I wrote was messed up! It should have been TONY set position to Tony's Box! So the codes you sent work great, and the camera movement is very smooth, But Tony's box is jittering and so is the sprite. otherwise everything works!

  • Okay so I tried the code, but now Tony's Box moves a little on a key pressed, but my sprite stays where he is and the camera kind of just jerks. The Tony's box has the platform behavior added to it, so I added a second invisible sprite that had the scroll to behavior added to it instead, then set it's position to Tony's Box with the lerp, but it's still not working! The sprites are just floating in the air and I can't control anything! Here's all of the code:

    Every tick: Tony: set position to Tony's Box. Then in another event, Every tick: Camera: set position to Tony's Box with the Lerp.

    The camera is the only object with the scroll to behavior. What am I doing wrong? Thank you so much for the trouble!

  • Thank you for the fast reply! My game is a platformer so the link you sent me doesn't apply to my problem. My sprite is quite big in comparison to my viewport which is the size of a Gameboy Advance viewport. I'm having trouble figuring out how to post an image of my problem, so I'll try my best to give the facts: System on every tick, set Tony's position (the sprite) to "Tony's Box".(the invisible box with the scroll to behavior.) My viewport is 240 by 160, and my sprite is 35 pixels wide and 65 pixels tall. I don't know if it's possible to position him more towards the bottom of the screen so you can see more above the player.

  • Hello, I was wondering if anybody could help me solve an issue I have with the "scroll to" behavior. The issue is this: I have an invisible box that has the scroll to behavior added to it. My sprite has his position set to the invisible box. Everything works fine as is. The main issue is that the invisible box is centered so that it's hard to see anything above my sprite. I have only found one topic on this issue but I don't know how to apply it to my problem. https://www.construct.net If I position the invisible box near the bottom of the layout, everything is fine. But when I start going up on any surface, the box is too high, and it makes it hard to see anything above. I am still relatively new to Construct 3. Any help would be greatly apricated.

Pigpud's avatar

Pigpud

Member since 29 Mar, 2023

Twitter
Pigpud has 3 followers

Trophy Case

  • 1-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • Quick Draw First 5 people to up-vote a new Construct 3 release
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

10/44
How to earn trophies