2 Problems Need help(Scrolling, Impact speed)
Hello,
I am creating a "crush the castle" style game and so far i have come down to 2 main problems.
1. I want the player to scroll the screen(at x at least) at ay time mostly before shooting the cannon.
I used the multiscreen menu tutorial but i get a strange bug.
If i wrap the screen i can scroll at X but the screen keeps bouncing at Y oubling it's speed at every bounce.
Moreover i need to do this without wrapping since my ball can't go outside the Y and the stuff appear beneath the cannon.... If i don't wrap the scrolling stops a second or so later....
2. I want to destroy an actor when it get's hit by a force greater that a number.
What i do now is that i make 2 real attributes and constrain the X,Y speeds of everything that collides with it
So that means i have to create 2 at for every object.Is there a general way to do so with just 2 attr?
Sorry for the big post and a big WELL DONE for your work everybody here!Tnx
I am creating a "crush the castle" style game and so far i have come down to 2 main problems.
1. I want the player to scroll the screen(at x at least) at ay time mostly before shooting the cannon.
I used the multiscreen menu tutorial but i get a strange bug.
If i wrap the screen i can scroll at X but the screen keeps bouncing at Y oubling it's speed at every bounce.
Moreover i need to do this without wrapping since my ball can't go outside the Y and the stuff appear beneath the cannon.... If i don't wrap the scrolling stops a second or so later....
2. I want to destroy an actor when it get's hit by a force greater that a number.
What i do now is that i make 2 real attributes and constrain the X,Y speeds of everything that collides with it
So that means i have to create 2 at for every object.Is there a general way to do so with just 2 attr?
Sorry for the big post and a big WELL DONE for your work everybody here!Tnx

Comments