Two actions for one effect?
Moderator: Zyx
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- Gambit37
- Should eat more pies
- Posts: 13766
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Two actions for one effect?
I'd like to create a floor text that only displays if the player carries a certain object AND is facing a certain direction. To do this, you'd need some way of using one actuator to make another active or inactive. Is this possible?
- Paul Stevens
- CSBwin Guru
- Posts: 4322
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
using one actuator to make another active or inactive
Your thinking is quite right. Using one bit ofthinking less literally
an AND/OR gate can be thought of as making
it active or inactive. If, for example, the target value
is zero, then setting bit 0 makes any of the other bits
totally ineffective. Exactly like making the gate 'inactive'
as far as the other bits are concerned.
Clearing bit 0 then makes it 'active' again.
It is just a matter of deciding how it is easiest to
think about the gate. Circumstances make it easier
think one way or another, depending on the problem to
be solved and your mental 'take' on the solution.