sqiddster's Recent Forum Activity

  • Think of the array as a huge grid, which holds values in each of its grid squares.

    You can access the value in a specific grid square by using array.at(x,y,z)

    Shuffling all the elements in the array is a bit complex, but I think there is an example of it somewhere...

  • This is because you are using the 8-direction behavior in conjunction with physics. You cannot do this! You will have to manually apply forces based off key combinations.

  • Don't see where this would be useful :P

    But whatever floats your boat I suppose...

  • 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...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

sqiddster's avatar

sqiddster

Member since 5 Sep, 2011

Twitter
sqiddster has 4 followers

Connect with sqiddster

Trophy Case

  • 13-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

16/44
How to earn trophies