Data Realms Fan Forums http://45.55.195.193/ |
|
Vectors/Disappear http://45.55.195.193/viewtopic.php?f=73&t=15143 |
Page 1 of 1 |
Author: | Mind [ Tue Jun 02, 2009 8:51 pm ] |
Post subject: | Vectors/Disappear |
Ok, two things i need assistance with: 1.) Code: actor.Pos = self.Pos; 2.) i have an actor that disappears on a map after crossing a certain line on every map. Then once you cross it and walk the other way, he reappears. Thanks |
Author: | Duh102 [ Tue Jun 02, 2009 9:04 pm ] |
Post subject: | Re: Vectors/Disappear |
For #1, you can separate the vector into two parts. actor.Pos.X = self.Pos.X (+, -) 5; actor.Pos.Y = self.Pos.Y; I have no idea what would cause #2, what's in the code? |
Author: | Mind [ Tue Jun 02, 2009 9:07 pm ] |
Post subject: | Re: Vectors/Disappear |
Duh102 wrote: For #1, you can separate the vector into two parts. actor.Pos.X = self.Pos.X (+, -) 5; actor.Pos.Y = self.Pos.Y; I have no idea what would cause #2, what's in the code? rather not say, because im going to be releasing it soon, but according to skiv, its the xwrap where its disappearing, so i dont know if it can be fixed btw: thanks for the help with vectors |
Author: | Mind [ Tue Jun 02, 2009 9:38 pm ] |
Post subject: | Re: Vectors/Disappear |
Sorry for the double post, but i'd rather make it a new post so last post is updated: With UInputMan, instead of the action occuring every time the key is pressed, including when it is held down, is it possible to make it so you have to individually press the key every time for the action to occur? |
Author: | Geti [ Tue Jun 02, 2009 10:00 pm ] |
Post subject: | Re: Vectors/Disappear |
make it set a variable to true on keypress and the false when the key is released, and the action only happen when the variable is false |
Author: | Mind [ Tue Jun 02, 2009 10:02 pm ] |
Post subject: | Re: Vectors/Disappear |
is there a variable for key released, though? edit: doh im dumb: (UInputMan:KeyReleased()) |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |