Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: SStru1987 on January 21, 2014, 11:35:39 AM
-
I'm creating a game (2.5D) where the character falls and I'm trying to guide him past obstacles (he will be moving along only on the horizontal axis). I tried following the showcase page on Add Force and I'm not having any luck. Is there a suggested way of a FSM I should setup? Sincerely would appreciate it
-
What isn't working with add force? Can you post an example of what you're having trouble with?
-
If you reference the showcase page for AddForce, It will be easier to follow along. I set it up the same way
What I want to happen is control my character using J= Slide Right & F = Slide Left. I've decided on this because I want to recreate the feeling of playing at an arcade machine.
What transitions, events and variables should I use to control my character as he slides left or right along the X axis? The overall mechanic is falling through level on a 2.5 view to dodge obstacles and enemies.
I appreciate your feedback and help
-
To better explain, I'm trying to add move left and right only without jumping or running.
when he falls I want to recreate how you direct this characters fall
http://jnamobile.com/samples/2DPlatformController/HeroSample.html
-
except he slides fast to right or left
-
If you just want to add some force when you push a button then you can do it in one state
Get Axis (store float as inputFloat) [every frame]
Add Force (on an axis use inputFloat) [every frame]
Adjust Get Axis multiplier as needed and adjust Add Force Force Type as needed.
No input results in a zero for Get Axis, which means no force is added.
-
You said: If you just want to add some force when you push a button then you can do it in one state
Get Axis (store float as inputFloat) [every frame]
Add Force (on an axis use inputFloat) [every frame]
Adjust Get Axis multiplier as needed and adjust Add Force Force Type as needed.
No input results in a zero for Get Axis, which means no force is added.
Do I add this state on the Slide Right/LEft states? How should I implement what you said in PlayMaker?
-
I'm still confused on how to implement what you said in PlayMaker for the character
-
You only need one state. You can get the axis and apply the force every frame in the same state.
-
No luck so far. I really need help and pulling my hair out. could you outline the steps of what I need to do in Playmaker?
-
This is all it takes to push an object around. Adjust the Multiplier in Get Axis for more/less force.
-
where it says 'store' on "Get axis" is that a variable? if so, whats the type?
-
Its applied, now how can I steer him by sliding left or right, because when I run it he always goes right
-
nvm, I got it!!! Thank you so much!
-
Last question, how do you map it to other keys? (As previously stated J=Right and F=Left)
-
http://docs.unity3d.com/Documentation/Components/class-InputManager.html
-
NVM about that either bc i just figured it out …. thank you so much for your help