Reply To: [SOLVED] Index out of bounds problem

FlowCanvas Forums Support [SOLVED] Index out of bounds problem Reply To: [SOLVED] Index out of bounds problem

#1114
Gavalakis
Keymaster

Hello,

Unfortunately due to the way nodes are working, the AND node will execute both A and B regardless of whether A is false, which in this case impose a problem. Please consider using the Switch Condition to check (if Input.touchCount > 0) and after than make use of GetTouch(0).phase with a SwitchEnum flow control node:

TouchPhase

(Note: To set the type of the SwitchEnum node, all you have to do is to drag and drop an enum port type like ‘TouchPhase’ is on the newly created SwitchEnum node.)

Let me know if that works for you.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. TouchPhase.png