sideways scroller random height floor and ceiling

Hi

I wonder if anyone could help here - I've a sideways scroller and on a later level need to create a level with the floor and ceiling randomly changing height as the player progresses through the level and which the player avoids, just can't work out how to do this. Any ideas?

thanks

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Quick and easy way:

    When on later levels:

    Timer: Every 5 seconds
    Change self.attribute.positionY to random(50, 100)

    (50 and 100 are just examples - you put in the number range of the Y position you want)


    Hope that helps!

    QS =D
Sign In or Register to comment.