sqiddster's Forum Posts

  • Dalal is correct...The only way to accomplish something like this at the moment is with masking, like he has described.

  • Keep in mind that Construct 2 cannot export an image! There may be a third party plugin for this, however... I don't know :P

  • Hmm, this is pretty complex...

  • I would agree with Yann, just use global variables for the moment. An 'event sheet variable' would be useful, but I can understand the current setup as it keeps with common programming conventions.

  • You don't need to spawn another player - just set its position to the correct image point.

  • Your capx is messed up as it is not choosing a random house... You are doing something about letters.

    Maybe it would be better if you told us exactly what you want to accomplish.

    If you want him to appear at a random house, use the capx I sent you. What about mine isn't working for you?

    To choose from a set of parameters, use the choose() function.

  • EDIT: Ooh, you want a trail...

    Yann's example is probably what you are after.

    Firstly, what you are intending is in no way how a shadow should look. Why do you want to do this? What is the shadow even falling on?

    Also, you need to choose either physics or platform, you must not use both. If you are making a platform game, you should use platform.

    If you tell us these things, it will be a lot easier for us to help you.

  • Yeah, the random() function is a bit tricky with its upper and lower bounds. Keep in mind you have floor() and ceil(), which will either truncate, or truncate and add one.

    Here's what you get from int, floor, and ceil:

    ceil(5.6) gives 6

    floor(5.6) gives 5

    int(5.6) gives 5

    That's right, the int function does not round.

    Keep this all in mind, and in some cases, consider using the choose() function to randomly choose between a fixed set of parameters.

  • First problem:

    Well, from what I know of physics, shadows do not get longer when an object is going faster...

    Anyway, are you saying the player uses physics and platform behaviors? That's a sure way to depression... Choose one or the other.

    Anyway, if you want to ignore the laws of optics ;)

    To get the speed, use distance(0,0,vectorX,vectorY) - it will be slightly different for physics or platform. Then multiply this and some factor by the shadow.width or height, and add a value. This added value will be the size that it goes to at speed zero.

    So your formula will be: set shadow.width to:

    distance(0,0,vectorX,vectorY) * factor + base_size

  • EDIT: Great... R0j0 beat me to the punch... Anyway this is a different way of doing it.

    Is this what you're after?

    Keep in mind this doesn't take into account if a policeman is already at the house... That's a bit more complex.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Scirra are also working on an exe wrapper, which could interest you...

  • Look in your layers panel - is the checkbox not ticked for your current layer?

  • 1. For desktops, you will have to live with having two audio formats. Sorry. It's the browser's fault.

    In terms of mobile, you will be hard pressed to get even the simplest game to run at any decent framerate on iOS safari... No need to try to conform to this platfrom then, much better to use a wrapper (directcanvas or cocoonjs).

    2. You will have to detect whether the user is using a mobile device, then change control schemes according to that. It would probably be better to export two different versions.

    Basically, look into wrappers instead of using the device's browser. Unfortunately you will be very disappointed about performance in this regard if you choose not to use a wrapper.

  • The problem lies simply with your animation style. A better way to do it would be to have arms, legs as seperate objects which you could apply events to, but because of your shading that would look awful.

    Have you thought of setting the 'attack' animation to the corresponding height frame of the jump animation, so you at least have the same height?

  • Hmm... for the record I use 64 bit version.