Boolean turning red when inside of a block


  • Posts: 2
I am creating a small game where I want the player to be capable of exploring around the map. However, I don't want it to be able  to go through tiles. So, I tried using the <[actor 1] [hit] [a tile]> block to prevent that from happening. Unfortunatelly, whenever I try to put it inside of an if statement, it turns red like in the attached file. The same thing happens if I to use any collision boolean. If I try to test the game no matter what, it shows an error. How do I prevent this from happening?

« Last Edit: May 20, 2022, 06:52:37 am by PlatoHero »


  • *
  • Posts: 2742
A collision block can only be used in a collision event. A custom block cannot be a collision event.
My Stencyl resources are available here:
Cutscenes, RPG Elements, Particles, Map System and many more.


  • Posts: 2