Random Actor Start Position/Off Screen?

setz

  • Posts: 7
Hi All! I am a brand new user of Stencyl and have been enjoying working the program over the last week. I have a question though....

I am trying to make a scene with a bunch of random clouds appearing off the screen and then begin to move in random directions throughout the screen. Any tips on how to do this??

Below image is how I am trying it so far... (keep in mind I am brand new so any tips would be appreciated!)  :)


setz

  • Posts: 7
are negative x and y coordinates (i.e. -250, -250) the correct way to start actors off the screen?

thegenericbanana

  • *
  • Posts: 494
are negative x and y coordinates (i.e. -250, -250) the correct way to start actors off the screen?
Unless your actor has "Always Simulate" (Which makes the actor's coding work even when off screen), no. Either way negative is the incorrect way. At the far left of the screen, it's x 0, and top is y 0, so having -250 and -250 would mean it's way out of bounds. If you have an actor created at 0 and 0, he starts at the top left, basically. Then, the X number goes up as the actor goes more to the right, and the y number goes up the lower he goes down.
Johnny Turbo's Surgery Frenzy

t4u

  • Posts: 418
are negative x and y coordinates (i.e. -250, -250) the correct way to start actors off the screen?
Unless your actor has "Always Simulate" (Which makes the actor's coding work even when off screen), no. Either way negative is the incorrect way. At the far left of the screen, it's x 0, and top is y 0, so having -250 and -250 would mean it's way out of bounds. If you have an actor created at 0 and 0, he starts at the top left, basically. Then, the X number goes up as the actor goes more to the right, and the y number goes up the lower he goes down.

how about using offscreen bounds block with big values? ps how do you use alway simulate cuz i cant find it.
USE PICTURES WHEN YOU ASK SOMETHING!
If I helped you be sure to mention it in your game.

Tutorials + downloads:
http://t4upl.blogspot.com/

setz

  • Posts: 7
are negative x and y coordinates (i.e. -250, -250) the correct way to start actors off the screen?
Unless your actor has "Always Simulate" (Which makes the actor's coding work even when off screen), no. Either way negative is the incorrect way.

Thanks for that tip. But are you saying that there is no way to start an Actor off the visible screen in the scene?

thegenericbanana

  • *
  • Posts: 494
are negative x and y coordinates (i.e. -250, -250) the correct way to start actors off the screen?
Unless your actor has "Always Simulate" (Which makes the actor's coding work even when off screen), no. Either way negative is the incorrect way.

Thanks for that tip. But are you saying that there is no way to start an Actor off the visible screen in the scene?
If they have Always Simulate, it should work. Have never done it though, only problem I could think of is maybe the created block wouldn't occur until he enters the screen, and if the created block doesn't happen he doesn't start to simulate. I'm pretty sure it'll work though, haven't used the simulate block in a while.
Johnny Turbo's Surgery Frenzy

thegenericbanana

  • *
  • Posts: 494
are negative x and y coordinates (i.e. -250, -250) the correct way to start actors off the screen?
Unless your actor has "Always Simulate" (Which makes the actor's coding work even when off screen), no. Either way negative is the incorrect way. At the far left of the screen, it's x 0, and top is y 0, so having -250 and -250 would mean it's way out of bounds. If you have an actor created at 0 and 0, he starts at the top left, basically. Then, the X number goes up as the actor goes more to the right, and the y number goes up the lower he goes down.

how about using offscreen bounds block with big values? ps how do you use alway simulate cuz i cant find it.
Actor-Properties-Make self always activate. Put that in the "Created". Sorry I said simulate, I guess they changed it from simulate to activate. Also sorry for the double post.

As for offscreen bounds, they're one of few blocks I have never used. If the actor is inside the onscreen bounds, hypothetically it should work. Not that it matters if you use always simulate.
Johnny Turbo's Surgery Frenzy

setz

  • Posts: 7
are negative x and y coordinates (i.e. -250, -250) the correct way to start actors off the screen?
Unless your actor has "Always Simulate" (Which makes the actor's coding work even when off screen), no. Either way negative is the incorrect way.

Thanks for that tip. But are you saying that there is no way to start an Actor off the visible screen in the scene?
If they have Always Simulate, it should work. Have never done it though, only problem I could think of is maybe the created block wouldn't occur until he enters the screen, and if the created block doesn't happen he doesn't start to simulate. I'm pretty sure it'll work though, haven't used the simulate block in a while.

THANKS BANANA! that worked for me. Appreciate it!

t4u

  • Posts: 418
are negative x and y coordinates (i.e. -250, -250) the correct way to start actors off the screen?
Unless your actor has "Always Simulate" (Which makes the actor's coding work even when off screen), no. Either way negative is the incorrect way. At the far left of the screen, it's x 0, and top is y 0, so having -250 and -250 would mean it's way out of bounds. If you have an actor created at 0 and 0, he starts at the top left, basically. Then, the X number goes up as the actor goes more to the right, and the y number goes up the lower he goes down.

how about using offscreen bounds block with big values? ps how do you use alway simulate cuz i cant find it.
Actor-Properties-Make self always activate. Put that in the "Created". Sorry I said simulate, I guess they changed it from simulate to activate. Also sorry for the double post.

As for offscreen bounds, they're one of few blocks I have never used. If the actor is inside the onscreen bounds, hypothetically it should work. Not that it matters if you use always simulate.

double thank s for showing where it is. I was always typing simulate and nothing came up
USE PICTURES WHEN YOU ASK SOMETHING!
If I helped you be sure to mention it in your game.

Tutorials + downloads:
http://t4upl.blogspot.com/