Ball reset problems

wissamercywissamercy Member Posts: 5
edited May 2012 in Working with GS (Mac)
Hi all,
this is the first time i use gamesald and still working hard to make the first game work.
I am designing a simple shoot-the-ball game with multiple levels.
the ball should reset when it hits the bottom line and comes back to the launch point. this works fine if it check individual levels, but if i move to lets say level B by winning level A, the ball will disappear as it hits the reset bar.
Is there a way to fix that problem.
thanks again for any help

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer
    if your launchPoint is different in each level …

    selfAttributes on ball … launchX and launchY …
    set to correct X,Y in ballActor in each level

    then on collide with reset … rule in prototypeActor …
    -changeAttribute: self.Position.X To: self.launchX
    -changeAttribute: self.Position.Y To: self.launchY

    ==
    would be easy to create a table to store those correct values
    then you need not add selfAttributes

    image MH

Answers

  • wissamercywissamercy Member Posts: 5
    Thanks MH for your quick reply.
    Just to give more info about the problem. I have a created a master scene and made several copies from it. All are working fine when tested alone but when I use links between the scenes the ball goes missing when it hits the reset bottom. So all balls are launching from the same place.
    I am sure there is some thing else out there.
    Starts are never easy!!!
  • jckmcgrawjckmcgraw Member Posts: 647
    Would you mind posting your project file so we could take a look at it?

    Regards,
    Jack McGraw
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    What MH told you will work - do you understand about selfAttributes?

    You'll need to change the values for each level depending where your ball starts.
  • wissamercywissamercy Member Posts: 5
    @Jack. i don’t mind posting it but I have no idea how to post my project and to whom!
Sign In or Register to comment.