Boolean Operation

0 favourites
  • 7 posts
From the Asset Store
Create a game inspired by great arcade classics as Operation Wolf
  • ARGGGG.... <img src="smileys/smiley7.gif" border="0" align="middle" />

    I am stuck. I don't want to use the "Bit" Plugin, because I think I've seen some article about "Boolean Operations" and since there are "basic" I sure think C2 should handle them.

    So, maybe anyone can give me a reference on how to user AND, OR, NOT, Shift...

  • The bit plugin is the easiest way to do bitwise operation

    bitwise operation are not boolean operation. Boolean is a type. The operation you do with booleans are assignations and comparaisons.

    the bitwise AND, OR, NOT, Shift,.. aren't comparaisons.

    Besides, in scripting languages, the syntaxe is different :

    AND :  & for bitwise, && for comparaison
    OR  :  | for bitwise, || for comparaison
    NOT :  ~ for bitwise,  ! for comparaison
  • You're a litte pettyfogger, ai? <img src="smileys/smiley36.gif" border="0" align="middle" />

    Anyhow, how do I do a bitwise operation within C2?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • With the bit plugin

  • Ok....thanks, so there's no "nativ" way...what honestly I can not understand... <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Well, you don't really need bitwise operation that much.

    There are ways to avoid using it in most cases.

    But I guess you want to use that for some masking for allowed items in some of your inventory slots (:

    I didn't use it for clarity.

  • Right on Mr. Yann <img src="smileys/smiley4.gif" border="0" align="middle" />

    Did you look at my demo?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)