WDRK23
(WOODREK)
July 7, 2023, 1:08pm
1
Hi! I want to make a simple parkour level and I need some help.
For example, I have 3 or more platforms that each have a collision box, but from one actor!
I want when I jump on the first one the second one will be activated and when I jump on the third the next one will be activated and so on.
I tried something with array but I don’t know exactly how to use it in such a way that it works.
TYIA!
1 Like
Are you going to have only 3? I’d then do it manually. But you’re going to have 300+, right?
I have 3 or more platforms that each have a collision box, but from one actor!
It’s clear but uncommon so, just to clarify, what we see above is 1 actor with 3x Static Mesh and 3x Box Collision, right?
1 Like
WDRK23
(WOODREK)
July 7, 2023, 2:16pm
3
I want more than 3, but all with an actor, the first parent and the rest the child I think.
In the image is 3x of 1 actor which contains 1 platform 1 box collision.
1 Like
In the image is 3x of 1 actor which contains 1 platform 1 box collision.
Got it! So they are actor instances. I though you made something like this:
when designing a level, how are you planning to decide which one is next? Do you ID them somehow? How do you know which one is next?
I want when I jump on the first one the second one will be activated and when I jump on the third the next one will be activated and so on.
what does Activate mean here? Are they all visible upfront?
I’m thinking how to organise it but, atm, there are too many unknowns to suggest something.
How about this:
in the aPlatform actor, I added aPlatform actor variable:
If I place them in the level, I can tell each platform, which one is next:
So the script could look like so:
Would that work for you?
You can also use the pick tool to select it with a direct click:
1 Like
WDRK23
(WOODREK)
July 7, 2023, 2:35pm
6
when designing a level, how are you planning to decide which one is next? Do you ID them somehow? How do you know which one is next?
I think with idex from array. I don’t know how exactly…
what does Activate mean here? Are they all visible upfront?
The first one will be visible and the rest will be invisible.
Maybe I should do them in the level blueprint, not in an actor?
WDRK23
(WOODREK)
July 7, 2023, 2:36pm
7
Hmm, I will try this and come back
1 Like
Each platform is an actor, place them in the level and link them as shown above. Do tell if that works for you.
1 Like
WDRK23
(WOODREK)
July 7, 2023, 2:47pm
9
Yesss man!! You are a genius!!
Thank you so much!!
I would never have thought of this solution!
1 Like
system
(system)
Closed
August 6, 2023, 2:47pm
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.