That because you're cutting off the rule before the code get's to the score or the reset. Remember this is logic and things happen in exact order in a rule. You change the attribute condition first. That shouldn't even be changed there. Take the change attribute game.game reset out of the rule and put it alone at the top of the code stack. When the scene resets that will fire and change it back to false.
I am not on windows now but does this also happens when you just walk to the left or right? if you have something like if game.moveRight is true change self.motion.linear velocity.x to 200 then make it if game.moveRight is true every 0 seconds change self.motion.linear velocity.x to 200 else change to 0
if you already have this then you probably need to put his friction to 0
if this also is not working then I will look at it when on windows
Also, I put a drag on my character and that stopped the dragging. I'm having trouble with my jumping. It seems when I figure one thing out, another goes bad.
Yeah, that is a lot better. Thank you very much Let me ask you one more question - and I do appreciate your help - as you saw, it jumps. I added some grass and a background to that same file, and now my jump button doesn't work. Any ideas on why that may be?
You need to spend more time watching videos and learning not keep asking others to fix your code. You don't learn anything that way. I have a complete tutorial as I told you on run and jump watch it and learn how to do it right. Looking at your code I see you don't understand how rules work and code order. I have a video that talks about code order and there is a video on the cookbook about rules. Do the proper study.
Watch those specific videos I mentioned. It's clear from your code you don't understand how logic is ordered. If you did you would have clearly scene you were turning off that rule right away with changing it back to false first.
I changed in the last rule the if game.jumping is true do rule if game.moveRight is true etc bla bla bla
to
if SELF.jumping is true. so thats why I said don't mess game.jumping and self.jumping. and I changed if overlaps or collide with ground tile copy change jumping to false else change jumping to true <-- added
Let me ask you. Did you do something to in the rules to make it work with just that character? Because when I switch out characters, it starts acting funny. First I could move right or left and jump, now if I switch out the character, I cannot move move right or left and then jump.
Could I get rid of the display text that shows true and false on my character?
I added a display text in your player so if you delete it you dont see a true and false on your player.
Let me ask you. Did you do something to in the rules to make it work with just that character? Because when I switch out characters, it starts acting funny. First I could move right or left and jump, now if I switch out the character, I cannot move move right or left and then jump.
Hmm... Maybe I edited the player in the screen and not the prototype (dont think so but cant remember) if you add the thing I said in another post then it should work. And else I will look at it when on mac.
Answers
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
You can download it. Will you please and tell me what's wrong? Thanks.
if you have something like if game.moveRight is true
change self.motion.linear velocity.x to 200
then make it
if game.moveRight is true
every 0 seconds
change self.motion.linear velocity.x to 200
else
change to 0
if you already have this then you probably need to put his friction to 0
if this also is not working then I will look at it when on windows
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
I'm having trouble with my jumping. It seems when I figure one thing out, another goes bad.
Let me ask you one more question - and I do appreciate your help - as you saw, it jumps. I added some grass and a background to that same file, and now my jump button doesn't work. Any ideas on why that may be?
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
https://www.dropbox.com/s/b9a7953oavpojmo/jumping_2.zip
I would also change your buttons to when touch is inside because thats better on a device
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
do
rule if game.moveRight is true etc
bla bla bla
to
if SELF.jumping is true. so thats why I said don't mess game.jumping and self.jumping.
and I changed if overlaps or collide with ground tile copy
change jumping to false
else
change jumping to true <-- added
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮