x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Flip Flop troubles in tile-town

I am trying to make a tile that toggles being blue and white when a third person character walks across it. My problem is that when I do walk across it, it flickers into the blue state, but then goes back to white, only sometimes sticking to blue. Through the troubleshooting process, I've narrowed it down to the flip flop node. I've tried doing the function manually too and all the other workarounds that I can think of, but none seem to fix the problem. What should I do? This is preventing my development from progressing, and I don't know what to do! Here is my code for the tile without optimizing or workarounds.alt text

Product Version: Not Selected
Tags:
more ▼

asked Jun 03 '17 at 04:48 AM in Blueprint Scripting

avatar image

Slashscreen
1 3 5 9

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

With current implementation you will get switching every time when tile overlapped.

But to get what you described, you should use

OnBeginOverlap -> cast to player character -> set blue. OnEndOverlap -> cast to player character -> set white.

And you shouldn't use "set material". It is better to create dynamic material instance in blueprint and set its color parameter.

more ▼

answered Jun 03 '17 at 07:03 AM

avatar image

redbox
4.2k 79 16 102

avatar image Slashscreen Jun 03 '17 at 03:07 PM

This doesn't solve the problem of toggling when it's touched, it just turns blue when you stand on it and white when you walk away, right?

avatar image redbox Jun 03 '17 at 05:34 PM

Yes, isn't it what you want?

avatar image Anaklosmos Jun 05 '17 at 03:38 PM

If you wanted to keep the color as blue even when you walk away...

Couldn't you make a boolean that checks whether the tile is blue or not? If it is blue, do nothing on begin overlap but if it is white, set material on begin overlap and set boolean as "Is Blue" = True.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question