GeometriX's Forum Posts

  • You've got the logic down, so that's half the battle. Do some tutorials and play around with the custom movement behaviour. At least try it yourself and then ask for help if you get stuck.

  • If I want to add a random variable into what you shown me how could I do this in construct. What I mean by this is I have a blood moon that I want to come out at random in-between what you already shown me.With what you have done so far I know its possible, But can I make it random is the question.

    I've updated my example to show a quick way to do this using the RGB effect. This is WebGL only so it won't work on mobile (for now), but the idea remains the same: roll a random number, do something with the results of that number.

    RookieDev, check your PM.

  • It's with all the other behaviours:

    <img src="https://dl.dropboxusercontent.com/u/14522925/C2%20examples/rotate.png" border="0" />

  • Cool, glad to be of help. At least now you know for next time :P

  • Usually, when people don't get a response it's because they weren't clear enough in the description of their problem. We don't all know Mipey's day to night transition.

    With that in mind, I'm totally guessing here: is this what you're after?

  • It's an action in an event. So do it in two events: first request the location based on whatever condition you want (every few seconds, or on click, for example), then in another event, use that information for whatever purposes you want.

    Here's an example. My geography sucks but I think this'll work for you...

  • Once you've used the Geolocation -> Request location action, use the System -> Compare two values condition. Geolocation has a ton of expressions you can access, including longitude and latitude.

  • rocky10529 made that game; perhaps he'd be willing to share his experiences.

  • You're missing my point, but thanks anyway.

  • Yes, I will do so if I don't get anywhere here. But bug reports tend to be ignored by the general population, from which I'd like some feedback if anyone has any ideas.

  • California, I'm not sure that these are related. Or if they are, I don't see how.

    Joannesalfa, thanks, but as I said, I'm not looking for a workaround - I already have one. I'm looking for an explanation or a solution.

  • Hi folks,

    I'm having some difficulty understanding a particular occurrence in C2.

    I have an object with the platform behaviour, and it changes its animations based on what the character is doing (standing, crouching, sliding, etc.). I've followed the advised practice of using a dummy blocker and placing the animated object on top of it, but I still need the blocker itself to change its shape for a few of the animations in order to change its bounding box.

    The issue comes up when my character is standing against a wall. The process of changing animations works perfectly when my character has a wall to its right, but when there's a wall to its left, it sort of "hops" up a little bit.

    You can see it happen in this capx. Arrow keys to move. Press C to change states.

    I've distilled my project down to its bare essentials and the issue persists, so I assume I'm overlooking something simple. Could anyone offer some help on this?

    PS: I'm not looking for a workaround, I've already got one. I'm specifically looking for an explanation or solution, as I'm either doing something fundamentally wrong, or this is a bug.

    Thanks!

  • Well, the pin behaviour is the best bet for this purpose, but you first need to set its position, then pin it (both in the event sheet), for best results (in this case, at least). Unpinning can be done in the event sheet as well.

    Your other option, which is functionally the same as using the pin behaviour, is to set position to another object each tick, specifying the desired image point. This way you can specify another condition, maybe a timer, and when that other condition is no longer met, the child object will simply cease to be "carried".

    Here's a quick example (r134). Drag the green block onto the pink one.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Agreed. I took a cursory look around earlier and didn't find it. Prefs would make much more sense.

  • Brilliant, thanks ASHLEY. I know it's just a small change but it'll greatly help.