switchblade327's Recent Forum Activity

  • 1. create a variable called originalMaxSpeed and set it to the max speed you want as a base. Then set max speed to originalMaxSpeed/2.

    Thanks for the explanation! That makes sense and for now, I was able to solve it with the method above. Though I'd like to find a way to have the originalMaxSpeed vairable driven by or otherwise tied to the MaxSpeed variable of PlayerCapsule(platform) object.

  • Sorry, another stupid newbie question but hopefully a simple one.

    I am trying to halve movement speed while crouched but I'm not having much luck with the expression.

    The imageHeight expression works correctly. The Platform.MaxSpeed does not but I think I have the right expression since the following DOES work:

    "PlayerCapsule.Platform.MaxSpeed*100"

    It work fine (with 100x the max speed) but I can't seen to divide MaxSpeed. With either /2 or *0.5 set, I simply lose the ability to move after I crouch. Any suggestions?

  • Awesome, I'll download r97 this weekend and dig into it. I have basic locomotion with transitions working already but nowhere near this level of complexity, so I'm really curious to if states are driven by global numbers or just a really complex network of if/and/unless statements.

    I started messing with Construct 2 because want to do exactly this kind of thing with a 2d platformer. I work as a 3d animator abut want to scratch my low-fi creative itch :)

  • Hey, this is really cool! When I try to download and look at the source, it says "version 96 when I only have 95" but 95 is the current free one. Is it because I'm still on the free version?

    I am trying to do a lot of the same things (especially in and out transitions) as you've done here so it's cool to see someone further along.

    Are you using Global Numbers for the different animation states or is it just a complex network of events?

  • That did the trick! And thanks for the links. I forgot that the Player object was also a sprite so I wasn't thinking of the Image related commands.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am trying to set up my platformer character to crouch ("When Down arrow is down, Set height to X" on the Player object). But it seems to want a pixel value when what be more flexible is a % value, the way scale works.

    I did a search and found references to OriginalHeight parameters in Construct Classic but I didn't have any success using them in Construct 2, though it's possible I didn't get the syntax right.

    Is there a way set height and wight by percentage and if so, how do I do it? And if it is an unlisted parameter (like OriginalHeight) is there a comprehensive list of these commands somewhere?

    Thanks.

  • No, not yet. I've searched around and found references to a OriginalHeight and OriginalWidth parameter in Construct Classes but I haven't been able to get that to work on Construct 2. Quite possibly a syntax error but if anyone knows, I'd love to hear.

  • Funny, it looks like we're trying to do the exact same thing animation-wise, though your setup looks to be more state-driven :)

    I have all the same locomotion (my 'running land' doesn't flip' but it is unique from a stationary land) but I found this thread while trying to implement crouching and crawling.

    I see you are manually resize your player object but wouldn't it be a more flexible system if you were to make your crouch values a percentage of the original, standing size? The 'scale' property is looking for a percentage but height and width are looking for integers.

    I've searched around a bit but haven't been able to find an expression to set height or width to a percentage of their original. Any takers?

switchblade327's avatar

switchblade327

Member since 17 Jun, 2012

None one is following switchblade327 yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies