Ball reset problems
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
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
-
MotherHoose Posts: 2,456
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 selfAttributesMH
Answers
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!!!
Regards,
Jack McGraw
You'll need to change the values for each level depending where your ball starts.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx