Game Development Reference
In-Depth Information
Now, we can build the logic for the platform movement, and anything that is built can be
tested directly in the editor or on the device. I prefer to break the logic into two pieces,
and this will make it easier than it looks like for you:
•
Get the touch state
: In this phase, you will use the
Input Touch
event that can
be executed when a touch gets pressed or released. So based on the touch state,
you will check via a
Branch
node whether the state is
True
or
False
. Your condi-
Search WWH ::
Custom Search