Help with infinite Y position

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi, I'm going to explain you what I want and see if anyone can help me.

    I have a frame that is 480x480 in size. I set its Virtual Width to 480 and its Virtual Height to -1. I did this because I have an Active with platform movement, and I want it to endlessly fall on the height of the frame. I already achieved this.

    So, my question is this. I want other Actives to appear at random in the endless level. I know that, for X, the position has to be random(480). How can I place the random objects for Y? Using random(-1) is not working for me. What am I doing wrong?

    Thanks a lot!

  • For a infinite height frame, it would be wise to generate the objects at certain increments, such as every 480th or 960th pixel. If you were to go this route, you would simply do have the expression to be [Frame Top Visible Edge + Random(480)] for every 480th pixel and [Frame Top Visible Edge + Random(960)] for every 960th pixel.

    • Please login to see this link.

    Please login to see this picture.

  • As a matter of fact! I don't need to. I have a few examples of such here laying about.

    Please login to see this link.

    There ya go, This should meet the criteria specified although if it does not, let me know and i will fix up a new one

    • Please login to see this link.

    Please login to see this picture.

    Edited once, last by ProdigyX (November 17, 2012 at 1:45 AM).

  • Dear ProdigiyX:

    You're gonna kill me but I can't understand your mfa yet. In order to make it easier, I'm uploading my mfa soy you can help me in it.

    As you can see, the Ball has a platform movement and it falls endlessly because of the -1 virtual height. For the width, there's an event to make it stop when touching windows edge. Outside, I have a red bar and I've made some events that place that bar in a random X, Y position at the start of the frame. Well, I want that bar to be created infinite times at random X (480) and Y (infinite) positions.

    Is it possible?

    Please login to see this attachment.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!