How would you make uneven ground that randomly sets itself?

CaliberGamesCaliberGames Member Posts: 33
edited November -1 in Working with GS (Mac)
I was wondering if it were possible to make uneven land randomly generate itself. I've seen it done in iphone games like tanks. Is it possible in GameSalad?

Thanks,

Avalanche Games

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    Use the rotate the angle behavior

    Rotate to: Random(min,max)

    Fill in the minimum and maximum it can rotate to
  • CaliberGamesCaliberGames Member Posts: 33
    Not exactly what I was looking for. What I was wondering was if it was possible to make hilly land in which it could create itself and when you drop something on the land, it creates a crater.

    Is this at all possible?
  • mangaroomangaroo Member Posts: 419
    i imagine so but the only way i can think of is by constructing how the hills will randomly develop by using lines+circles connected to eachother - those lines could disappear and you can insert gfx for a crater + create your own physics/hole with other actors as well for the crater, but it wont be fun...especially the first part
  • RedlerTechRedlerTech Member Posts: 1,583
    Yes

    Create 2 attributes called CraterX & Crater Y (both integers)

    What you want to do is when your actor collides with hill to change CraterX & CraterY to the position where it collided with hill.

    Spawn actor: Crater at CraterX & CraterY
  • rlehmrlehm Member Posts: 320
    You could draw an image with craters in the ground. Draw hills.

    In the hill actor, if collide, destroy actor... leaving the crater showing.

    I'd add some dust animations to smooth out the transition from hill to hole.
  • CaliberGamesCaliberGames Member Posts: 33
    what I am trying to do is a terrain like in tank wars 2 where the bombs destroy some of the land and then, the tank could go into and out of the crater
  • RedlerTechRedlerTech Member Posts: 1,583
    nope, we don't have joints. YET
  • CaliberGamesCaliberGames Member Posts: 33
    What I am wondering is if I can create a destructible ground in which moving vehicles can go on.
Sign In or Register to comment.