HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 How do You Jump High

View previous topic View next topic Go down 
AuthorMessage
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: How do You Jump High   Sat Mar 07, 2015 6:27 pm

How on earth do you edit the code to make yourself jump high
Back to top Go down
Atlas
®
®
avatar

Game username : Atlas
Server : Untamed Souls [owner] Animal Island [owner]
Male Posts : 54
Join date : 2013-11-17
Age : 19

PostSubject: Re: How do You Jump High   Sat Mar 07, 2015 6:31 pm

You hit twice the space button?
Back to top Go down
Cloud
Texture Artist
Texture Artist
avatar

Game username : Cloud, Daydream
Server : None
Female Posts : 614
Join date : 2014-07-22
Location : Under your bed

PostSubject: Re: How do You Jump High   Sat Mar 07, 2015 6:35 pm

They might mean while with wings. If you haven't modified it, without wings the player can double jump. With wings they cannot.

http://www.kitopen.com/t1897-double-jump-with-wings?highlight=double+jump+with+wings
Back to top Go down
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Sat Mar 07, 2015 6:40 pm

No I mean, I can double jump but It doesnt go up that high I heard Kovu could do it but I cant get in contact with her atm.
Back to top Go down

Very Helpful
Very Helpful


Male Posts : 314
Join date : 2013-07-21
Age : 16

PostSubject: Re: How do You Jump High   Sat Mar 07, 2015 7:00 pm

MagixUnit.h:
void doDoubleJump()
Code:
   void doDoubleJump()
   {
      if(hasDoubleJumped)return;
      if(mWingEnt)return;
      hasDoubleJumped = true;
      addForce(Vector3(0,5,0));
      changeAnimBase("Attack5",1.5,true,false,false);
   }
to:
Quote :
     void doDoubleJump()
     {
                if(hasDoubleJumped)return;
                if(mWingEnt)return;
                hasDoubleJumped = true;
                addForce(Vector3(0,5,0));
                changeAnimBase("Attack5",1.5,true,false,false);
}
0,5,0
x y z
While bigger y, less gravity attraction to the ground.

Change it to 8, for example, to stay more time in the air or jump higher.

Haven't tested it though, so, let me know if there's a unwanted result.


Last edited by Revaen on Sat Mar 07, 2015 7:34 pm; edited 2 times in total (Reason for editing : fixed a misunderstood with myself :P)
Back to top Go down
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Sat Mar 07, 2015 7:21 pm

Revaen wrote:
MagixUnit.h:
void doDoubleJump()
Code:
   void doDoubleJump()
   {
      if(hasDoubleJumped)return;
      if(mWingEnt)return;
      hasDoubleJumped = true;
      addForce(Vector3(0,5,0));
      changeAnimBase("Attack5",1.5,true,false,false);
   }
to:
Quote :
     void doDoubleJump()
     {
                if(hasDoubleJumped)return;
                if(mWingEnt)return;
                hasDoubleJumped = true;
                addForce(Vector3(0,5,0));
                changeAnimBase("Attack5",1.5,true,false,false);
}
0,5,0
x y z
While bigger y, more gravity attraction.

Change it to 3, for example, to stay more time in the air or jump higher.

Haven't tested it though, so, let me know if there's a unwanted result.

I think it made it weaker.
Back to top Go down
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Sat Mar 07, 2015 7:27 pm

Nothings really working much, do I need to re-encrypt?
Back to top Go down

Very Helpful
Very Helpful


Male Posts : 314
Join date : 2013-07-21
Age : 16

PostSubject: Re: How do You Jump High   Sat Mar 07, 2015 7:33 pm

Of course, you need to build the compile again with the new coding.

And yeah, tested it but with another program, definitely make it higher gives you "gravity attraction to the sky", so, use a higher number, sorry for the misunderstand, haha.

Back to top Go down
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Sat Mar 07, 2015 7:51 pm

It still wont work, sadly.
Back to top Go down
Slain Motionless
Watched
avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 426
Join date : 2014-05-09
Age : 18
Location : Coding

PostSubject: Re: How do You Jump High   Sun Mar 08, 2015 2:10 am

Instead of lowering the number, maybe try gradually making the number larger to see if it helps any. You may be using a smaller number.
But also, when it rebuilds make sure your using the new game build if all 3 suceeded.
Back to top Go down
http://aroessa.proboards.com
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Sun Mar 08, 2015 7:47 am

Slain wrote:
Instead of lowering the number, maybe try gradually making the number larger to see if it helps any. You may be using a smaller number.
But also, when it rebuilds make sure your using the new game build if all 3 suceeded.

1 Suceeded, 2 up to date and I still used the new game. I used a high number like 10 and still wont work.
Back to top Go down
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Sun Mar 08, 2015 5:47 pm

So I've done pretty much everything and it still wont work sadly, I know put in 50-70.
Back to top Go down

Very Helpful
Very Helpful


Male Posts : 314
Join date : 2013-07-21
Age : 16

PostSubject: Re: How do You Jump High   Mon Mar 09, 2015 1:40 am

Nevermind what I said previously, that was for something else, i deduce.

So, anyways:

MagixUnit.h
Ln 7
Code:
#define MAX_JUMPHEIGHT 10

Modify the number value to any higher one for a more height.

Haven't tested this though, so, I guess I will apologize if this doesn't work as well.
Back to top Go down
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Mon Mar 09, 2015 7:48 am

Not sure, it worked since its saying 'Please download the latest version.'
Back to top Go down
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Mon Mar 09, 2015 7:40 pm

It didn't work D:
Back to top Go down
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 483
Join date : 2014-02-09
Age : 19

PostSubject: Re: How do You Jump High   Mon Mar 16, 2015 10:43 pm

I'm assuming you have the new source, in which case yeah, jumping is broken

I fixed mine by reverting to the old method

MagixObject.h

Code:
#define GRAVITY 0.9
to
Code:
#define GRAVITY 4

MagixUnit.cpp

Spoiler:
 
to
addForce(Vector3(0, 5, 0));

MagixPlayer.cpp
Code:
if (jump && distanceFromGround()==0 && mForce.y >= 0)
      addForce(Vector3(0, JUMP_ACCEL, 0));
to
Code:
if (jump && distanceFromGround()<(MAX_JUMPHEIGHT*hasDoubleJumped ? 2 : 1) && mForce.y >= 0)
      addForce(Vector3(0, GRAVITY*evt.timeSinceLastFrame + (distanceFromGround() <= GROUND_THRESHOLD ? 2 : 0), 0));

________________________________
Back to top Go down
http://azoptaos.boards.net/
ЩΛЯ

avatar

Game username : ThisIsWar
Server : Eclipse
Female Posts : 373
Join date : 2015-03-02
Age : 17

PostSubject: Re: How do You Jump High   Tue Mar 17, 2015 8:01 am

I don't have the new one, and I cant find MagixPlayer.cpp mine is the 2011 version.
Back to top Go down
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 483
Join date : 2014-02-09
Age : 19

PostSubject: Re: How do You Jump High   Tue Mar 17, 2015 4:58 pm

The old one doesn't have cpps

less gravity = higher jumps

#define GRAVITY 4

________________________________
Back to top Go down
http://azoptaos.boards.net/
Guest
Guest



PostSubject: Re: How do You Jump High   Fri Apr 10, 2015 4:06 pm

I accidentally set it to 0.4 instead of 4...the results were hilarious.

Back to top Go down
Katya

avatar

Posts : 2
Join date : 2014-10-28

PostSubject: Re: How do You Jump High   Fri Apr 10, 2015 4:36 pm

Спасибо
Back to top Go down
 
How do You Jump High
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support :: Solved Support Issues-
Jump to: