How do I randomly generate sprites attached to families

0 favourites
  • 3 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • in my screenshot i show my randomly generated city.

    how do i set my randomly generated cornerstones and roofs to this city? ( i have 3 roofs and 3 types of corner stones)

    [attachment=0:15xgvbk2][/attachment:15xgvbk2]

    I set my walls to a family called fam_walls

    and then set a for each fam_walls

    create roof>roof.width = fam_walls.width

    create cornerstone_left> position = fam_walls.x, fam_walls.y > cornerstone_Left.height = fam_walls.height

    create cornerstone_right> position = fam_walls.x, fam_walls.y + fam_walls.width > cornerstone_right.height = fam_walls.height

    I also did a randomly generated number 1,4

    num = 1 >create roof_1 ...ect...ect...

    but in all honesty, its not working. The roof and cornerstones are not showing up.

    I just need theory to point me in the right direction, I don't necessarily need someone to DO IT for me. (I think)

    Thanks,

    Gathos.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well.. no answer. That sucks. Any Ideas of where to even THINK about looking?

    to simplify for possible ideas, I'm trying to randomly pick/create a sprite and mirror it on the other side of a tile sprite.

    Thanks for looking guys.

    I appreciate the people have been just viewing to see if they can help.

    Gathos.

  • Any chance of providing a capx?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)