Page 2 of 2

Re: September Tournament Theme pick

PostPosted: Sun Sep 02, 2012 4:56 am
by Jagmaster
I'll team up with someone to supply graphics perhaps, if anyone wants. Schedule permitting :)

Re: September Tournament Theme pick

PostPosted: Sun Sep 02, 2012 2:02 pm
by NightOfHorror
Well, I at least could you use some of your help Jagmaster. If we make a team, then all your graphics count as mine too, therefore I still get points for it. As of now, I am stumped on the five sectors, but I may have an idea. Also, this is the first game that I actually am making a character jump, as I never had to before, and would like assistance on how to do it correctly. I did put a code in, but what happened was unexpected. My character would hop and I could move in while in air, but I could never move while on ground unless I jumped. Also when I jumped down to this one platform, if I didn't jump immediately, my character would hover and never touch the block below it, so he can't jump even again. Also, I put a block above this platform going up, so if you jumped, it would block you from getting to the platform without doing something. The thing is though, if you jump and you get your head to hang onto the edge of the block, you are allowed to jump again since it is set to let you jump if you touch the top of a block. If you set it where your bottom of the feet have to contact to jump, then you just need to touch the blocks and you can jump. I know this is more simple then I am making it to be, but I never did do jumping ever, and don't know what I am doing wrong.

Re: September Tournament Theme pick

PostPosted: Mon Sep 03, 2012 3:48 am
by Jagmaster
Sure thing! And the jumping, even though there are a buttload of examples of jumping and such, I'll still break it down for ya. It's a little hard for me to picture your problem so I'd just make sure you got the keydowns and such enabled and disabled repeat as they should.

For starters make sure you have your gravity working. Should be in drawactor and be along the lines of yvelocity+1; Or however strong you want the gravity to be.

Then for your jump variable to prevent you from jumping repeatedly. Go to the variable tab or global code, call it jump and make it an integer.

on collision on the top side of your ground (repeat) enter in the script editor
Code: Select all
 jump = 1;


then on your keydown of the jump button (space bar) repeat set to no
Code: Select all
yvelocity-=10*jump;
jump=0;


the jump variable is either 1 or 0. So yvelocity will either decrease 10 times 1, or 10 times 0. So he will either jump or he won't.

Make sure your movement (x axis stuff) has no relationship to your jump var. Also make sure you have your physical response stuff put in correctly. :)

Edit: this explanation seems very out of topic. :lol: But if you need any more help have a look around. There's a lot to learn from here.

Re: September Tournament Theme pick

PostPosted: Mon Sep 03, 2012 4:39 pm
by NightOfHorror
thank you. By the way, I wanted to release details for this tournament, but my mom grounded me because she lost my money, and wants to believe that I lost it.

Re: September Tournament Theme pick

PostPosted: Tue Sep 04, 2012 2:10 am
by NightOfHorror
It turns out, I was just doing something the noob way again, and that is why I couldn't move. It had nothing to do with the jump codes or movement codes. It had something to do with my choice of collision... :oops: