Something is wrong...

doccharlie

  • Posts: 11
I want to make clouds go from one part of the screen to the other. Then wait a few seconds and start again. I tried that and it starts jumping up and down and back again. This is the part of the code I think is wrong, please see if you can help
Love to learn new things and am really open to suggestions :)

colburt187

  • *
  • Posts: 2416
I think it's the random number on the y, because its in an always block I think it is changing the y position every frame, hense the up and down movement,

You could just put the wrap around screen behaviour on the actor and then when exits the screen it would appear at the other side.

But if you want random starting hights it might be easier to kill the actor when it exits the screen the create it again from where it started, when created set y to random number.

doccharlie

  • Posts: 11
Thank you very much, colburt187 for your quick and skillful response. As I would've probably given up soon after that.  :) I hope to make my game soon.
Love to learn new things and am really open to suggestions :)