Terrible Tree Trouble

0 favourites
From the Asset Store
77 Hi-Res realistic Trees over transparent background. Variety of species and seasons.
  • That doesn't work for the same reason that my original couple of simple ideas didn't work: there might be 30 trees on the map, but there is really only 1 "tree." You have to use the UIDs to distinguish between different instances of trees in order to individualize each tree, or else the opacity will be set to 75% for each consecutive tree you walk into without it reverting to 100% until you aren't touching ANY trees.

    You just end up with half of the trees being transparent that way. :)

    Actually it should work, as each tick it sets every trees opacity to 100. After that it checks if player is overlapping any trees, and lowers their opacity. Don't see why it would not work :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here, even made example for your viewing pleasure :)

    Tree example

  • Well I'll be damned... I don't know why that didn't work for me. I'm almost positive I tried that and variations of that at some point. Maybe something else in my event chain was interfering with it since my event chain is more complex. Hmmm...

    Well, the moral of this story is to definitely use Vee's simpler, more concise example if it works, and if not use the complex, convoluted example I previously posted. ;) lol

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