Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Since when is xor useless, Without bitwise checking
United States
RetroXYZ
Posted: Jan 25 2009, 02:37 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


CODE
if !(keyboard_check(vk_left) xor keyboard_check(vk_right))
{
moving=false;
}


=/
PMEmail PosterMSN
Top
United States
OniLink10
Posted: Jan 25 2009, 02:42 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


Use xnor. In your code, it would return true if both or neither are pressed.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
RetroXYZ
Posted: Jan 25 2009, 02:45 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


Why the hell do I need to use nxor? Seriously.
PMEmail PosterMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0402 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.16 ]