Jump to content

Photo

Changed Movement Speed for Link


  • Please log in to reply
6 replies to this topic

#1 L33TSkillz

L33TSkillz

    Junior

  • Members

Posted 12 July 2010 - 12:40 PM

I want link, when moving up and down to move at 0.71 times his normal speed. That's it. I have an idea and I'd want to try something with this.

Global btw, and I just didn't feel like going to do this myself.

Edited by L33TSkillz, 12 July 2010 - 12:44 PM.


#2 Joe123

Joe123

    Retired

  • Members

Posted 12 July 2010 - 12:45 PM

I can do half, a third, a quarter, a fifth etc. easily, other amounts are a real pain to do. Does it have to be exactly 0.71?

#3 L33TSkillz

L33TSkillz

    Junior

  • Members

Posted 12 July 2010 - 01:21 PM

Because I wanted to try making something where the camera actually is at a 45 degree angle, rather than have a square on the ground and wall for instance look exactly the same, aka conflicting dimensions.

#4 Joe123

Joe123

    Retired

  • Members

Posted 12 July 2010 - 01:26 PM

Oh right. Well if no-one's done it by this time next week send me a PM or something and I'll have a look, I'm going on holiday tomorrow.

#5 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 12 July 2010 - 06:41 PM

CODE

if(InputRight)
  Link->Speed = 0.71;


Oh, that's right ZC doesn't use floats. icon_frown.gif

CODE

int remainder;
void func(float x){
remainder += x;
if(remainder > 1) {
  remainder -=1;
  moveLink(1);
}
}


#6 L33TSkillz

L33TSkillz

    Junior

  • Members

Posted 12 July 2010 - 07:56 PM

Input right? why right?

#7 Joe123

Joe123

    Retired

  • Members

Posted 13 July 2010 - 01:42 AM

QUOTE(Gleeok @ Jul 13 2010, 12:41 AM) View Post
CODE

if(InputRight)
  Link->Speed = 0.71;


Oh, that's right ZC doesn't use floats. icon_frown.gif

There's also no Link->Speed anyway, there's just that nasty 'Move[] = { 1, 1, 2 };' or something.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users