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"

Character spline path branch

I'm currently working on Side scrolling game project and i have made character locked in to spline path. Followed this tutorial https://forums.unrealengine.com/showthread.php?24522-Tutorial-Blueprint-Spline-locked-sidescroller-%28e-g-Klonoa-Pandemonium-style-game%29 and it worked but i need branch character path to other spline after he hits the trigger. After few attempts to come up with this i give up. No ideas. Any suggestions are welcome! Thank you. alt text

Product Version: UE 4.12
Tags:
more ▼

asked Sep 29 '16 at 06:47 PM in Blueprint Scripting

avatar image

A_Bishop
198 4 24 19

avatar image PasteDog Sep 30 '16 at 07:25 AM

Could you upload a screenshot of your blueprint setup where you try to switch splines? It might help us to see what your problem is.

avatar image A_Bishop Sep 30 '16 at 01:08 PM

alt text I added second variable "Char_spline_2" wich reffereced to another spline through branch node. I know this not going to work that was just an idea...

avatar image PasteDog Oct 05 '16 at 02:15 PM

Uhm, I don't see any logic problems directly in you Blueprints...

Make sure you set the Char_Spline_2 in the details of your character located in your level, the Char_Spline_2 might be connected to nothing or to the wrong spline.

What you could do to make it more readable is:

  • Add an extra Char_Spline variable and call it Char_Spline_Var

  • Delete the branch in the beginning of your event Tick and connect your tick directly to the top SetActorLocation node

  • Change every Char_Spline into our new Variable Spline(Char_Spline_Var) in this BP line

  • Disconnect the Press B button

  • change the on pressed to set our variable: Char_Spline_Var to Char_Spline

  • change the on released to set our variable: Char_Spline_Var to Char_Spline_2

Now you completely eliminated the extra branch that has the same blueprint code and changed into a "Variable" one

Hope this helps,

Elias

avatar image A_Bishop Oct 05 '16 at 02:40 PM

Thank you! I thought you forgot. I'll try and replay results.

avatar image A_Bishop Oct 05 '16 at 03:16 PM

Char_Spline_Var must be referenced to Char_Spline Bp or Char_Spline_2 Bp? Or it must be Float?

avatar image PasteDog Oct 06 '16 at 11:34 AM

It must be the same type as Char_Spline, so it would be like a SplineActor?

avatar image A_Bishop Oct 06 '16 at 01:02 PM

Char_spline variable is referenced to Char_spline Bp so it knows start world location of spline bp.Same thing with Char_spline_2. Char_spline_var variable can't be same type of variable. alt text

zsfva_2134.jpg (495.8 kB)
avatar image PasteDog Oct 06 '16 at 03:21 PM

Both spline actors should be from the same blueprint :) No need to create a new blueprint class since they should both have the same functionality.

If you make a copy of your first one and get the world location from the copy it will be the correct position, if I get home I can explain this a bit more if you need :)

avatar image A_Bishop Oct 06 '16 at 10:26 PM

No i understand.please show me that--- change the on pressed to set our variable: Char_Spline_Var to Char_Spline

change the on released to set our variable: Char_Spline_Var to Char_Spline_2 Thank you!

avatar image PasteDog Oct 07 '16 at 06:34 AM

Drag the variable onto the grid and select the "set" and then plug in the Char_Spline and in the other one plug in Char_Spline_2.

avatar image A_Bishop Oct 07 '16 at 04:41 PM

So this what i did and it's not working.![alt text][1]

I deleted second spline bp and just dragged first one into the scene to create some second spline. I selected Char_spline2 in the details of the character.Char_spline_var (no tooltip referecend Bp but the same type) leave as none. Other way it's pointless because it is setting position on first spline and only.But in this case Char_spline_var not determinating world position and this what we get ![alt text][2] Here whole setup ![alt text][3] May be we could do something that works in online?I would appreciated a lot!!! [1]: /storage/temp/110016-111.jpg [2]: /storage/temp/110017-333.jpg [3]: /storage/temp/110019-222.jpg

111.jpg (291.8 kB)
333.jpg (39.1 kB)
222.jpg (338.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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