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"

problems with flip flop node

Im trying to make retractible spikes, like in sonic the hedgehog. I have the spikes raising and lowering every two seconds just fine. Whether or not they go down or up is controlled by a boolean variable called 'activated' and im using the flip flop node to toggle the value. The issue im having is that hypothetically, if i had two of these blueprints right next to each other, one starts with activated true, the other one false, the spikes should go up and down at opposite times. Instead, the one that starts activated stays up for 4 seconds, and then they go up and down in sync. maybe im just using flip flop incorrectly but heres how im doing it alt text

Product Version: UE 4.12
Tags:
capture.png (52.2 kB)
more ▼

asked Jul 11 '16 at 11:45 AM in Using UE4

avatar image

ViceVersa
1k 64 46 98

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

1 answer: sort voted first

The reason for this behavior is that you start your timer, it reaches zero and the route A executes which writes "true" into the "Activated" variable (in other words, both spikes will be up). Then it reaches zero again for both blueprints, route B executes, and both spikes retract. And so on.

I suggest using a variable "default state" that will be true for initially active spikes and false for inactive spikes. Your blueprint would look like this (see attached image)alt text

flipflop.jpg (79.7 kB)
more ▼

answered Jul 11 '16 at 12:26 PM

avatar image

Niaphim
56 3 6 7

avatar image ViceVersa Jul 11 '16 at 07:35 PM

Thank you good sir, very informitive

(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