Need help with a really confusing fix (probably simple for everyone else)
Jordeyy
Member Posts: 409
right my game involves jumping off a ramp on a bike and your score by how far you jump which is simple but my score system will work with my auto rotate on landscape right then ill preview again not even touch the game and the score system will stay on 0 and not work and ill change the camera auto rotate to ruffing and preview and it don't work so i change it to landscape right and it don't work still so i take it back off and it works why is this happening ?
This discussion has been closed.
Comments
"ruffing?"
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
(Btw try using some periods in your sentences so we know when a new sentence begins. That will help us better to help you.
Okay here goes... Translation begins here...
This game is about a bike. You get a score by how far your bike can jump. He understands how to create the score system. That is not the problem. The game is designed for landscape. Upon first testing he holds the device with landscape right. Seems to work fine. It appears (and this part of the translation could use some work, i'm not a pro at this that when he tests the game a second time (without even touching the screen) that the scoring value remains at zero and will not work properly (i'm assuming he means the game won't register scoring).
He then tries to tweak the camera orientation/rotation settings. I'm going to guess he means changing the auto rotate to landscape left or something? And that doesn't work. So then he reverts back to landscape right and possible even adjusting this into GameSalad creator (i.e. resetting auto rotate back to rotate right) and the game still behaves odd.
It appears that only after he reverts everything back to the original settings AFTER going through all of this, that the game works again.
Phew! That was incredibly challenging. How did i do?
I have a feeling this may have more to do with the game not resetting some of the values. Like maybe all he needs to do is add a change attribute at the start of his code to ensure things reset.
Wow. I need a drink.
But you're still not including periods in your comments. I'm not here to be the grammar police but it will help everyone out if you use periods, etc.
Lets take your latest comment "anatomyofdreams yeah pretty much i will word them better from now on the score system works when it wants to in other words"
Try...
"Yeah that's pretty much it anatomyofdreams. I will try to word my comments better from now on. Basically the problem is that my scoring system works when it wants to work. It's not reliable in other words."
So anyways if that's the problem it could be that you're not having your score or actors reset. Give you a quick example.
Lets say i have a game where i push a button. Everytime i push the button it gives me 100 points.
So i press the button and it does exactly as i asked it to (it gives me the 100 points). Well if i don't include a behavior, like change attribute to 0, at the very start of my code- there's a chance the game will start me off with 100 points. Now clearly i'm giving a very simple example here but hopefully you get the gist. Make sure all of your actors and scoring systems have a line of code at the very beginning that ensures it will reset to the way you want it upon startup.
Makes sense? Give it a try. Look at all of your actors and make sure that there is a line of code that will reset and or notify them where to be at the start of a level.
For instance if you have a health system (like 3 hearts), make sure there is a line of code that says something like change attribute energyhearts to 3. That way it know to give you 3 at the start. If you don't it might cause problems.
Best of luck!
I was just in a rush when i made this discussion, could someone please close this discussion.
Thanks
That all said did my suggestions help you out? Any progress on the problem?
Here is my game,see what your think
http://arcade.gamesalad.com/game/110127
And it's hard to tell why the scoring is not working from the arcade. We need to see the rules you have for the scoring, at the least.
Did the scoring work when you originally got the template, or has is been weird since the get go?
I have two attributes (Startx,Endx)
I just forgot to turn on the behavior stating - ( When Bike crashes - set EndX to Self.Posistion.x)
If you get me ?
Would you still like this discussion closed?