psi_paz's Forum Posts

  • 7 posts
  • Wow, yeah this works perfectly for the most part. Had to do some tweaking since the from scratch 8 direction movement was acting weird with collisions. So, I'll still have to fix that up later. I think I'm gonna have to figure out a way to calculate how much to increase the speed when moving diagonally (however you do that, I have no idea).

    But I changed some stuff around to fit with the 8 direction behavior and it worked perfectly, thank you!

  • A hybrid approach would be ideal, yes... in fact thats the only way I can see it working out. Since I only have animations for 4 directions if I ONLY calculated by the angle, I'm pretty sure I'd just end up at square one.

    I tried the code you sent but it didn't seem to work for me, it kind of just completely broke the animations. Though, that's probably because I'm misreading it... The way I did my state machine might have also affected the way it works since animations are determined via a "direction" string. And if the player isn't moving their state is set to "idle" which sets the frame rate to 0. (I attached a screenshot of it in my first post if you need more details.)

    (Also should mention I'm a she, no offense taken dw.)

  • Hey, thanks for the response! I tried the animation thing you suggested, it works for the most part. However, now I've run into a new problem. If I hold down the left and right arrow keys at the same time and then press down, they'll remain in their left animation. Same thing happens if I hold up and down and then press right. Not sure what's going on there. It only happens for those specific animations as well.

    Dunno if it'd help but here's the code I wrote down, it's basically the same as yours, though.

    Also I haven't tried the thing you gave for moving diagonally yet since I'm wondering if it'd be better to go with double 8 direction behaviors or just doing it from scratch. I'm just not sure if either one will cause problems for me down the line. Which one would you recommend?

  • Couldn't fit it all in the title but I actually have two issues that are kind of related. I'll start with the first one.

    As I'm sure you know the 8 direction behavior doesn't keep a consistent speed when moving diagonally- it is often times much slower than going straight for example. Which is a bit of a problem for me since the game I'm making is a top down RPG with bullet hell elements. Main thing I'm tryin' to wrap my head around is how would I go about fixing that? I know it probably requires some sort of calculation on my end but I have no idea to go about doing that; better yet how to do it ONLY when the character is moving diagonally. I'll have some pictures attached of what my current set up for movement is. This is the MAIN problem that I need solved ASAP since having inconsistent movement in bullet hells is a VERY big deal. It can completely destroy the game feel and makes it harder to design around.

    Secondly, some animation trouble I've been running into. Not sure if I'm going to explain this well but... If you've ever played something like UNDERTALE or DELTARUNE you might notice that when pressing down your character doesn't just immediately go down. They still play on of their side animations. However once you let go of the left or right arrow keys they begin to do their proper up and down animations. Vice-versa for the opposite scenario. This is something I want to achieve because with the current system I have, the player can just keep pressing the up and down buttons rapidly while moving left or right and they'll keep switching back and fourth between their down and up animations to their side ones. It looks really awful and thats a bit of a problem.

    If anyone could me with these 2 I would be very grateful.

    (Sorry for the censored images by the way, don't want the project TOO public yet.)

  • ahh... I see thank you!

  • Ah, I see. Though I am confused, how did you hide the carrot in the text? When I try to do the same thing it shows up anyway, so I'm probably misreading the code or there's some expression I just don't understand yet. Either way, thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay so basically I'm trying to make it so whenever a "[pause]" is found within a string it'll activate a timer to pause the typewriter. I've already been able to achieve this using periods and commas within the Animated Text addon... But I'm not exactly sure how to pull it off for phrases or words.

    This is what I've been able to do so far, not sure where to go from here.

    I should also mention while I'm at it that there was a separate issue I ran into where the timer wouldn't work with delta time for some reason...? Also when there were multiple periods next to each other it wouldn't pause for all of them.

  • 7 posts