playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Download the
Ecosystem Browser
to find new actions, samples. etc.
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Changing float subtract in one FSM from another
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Changing float subtract in one FSM from another (Read 1217 times)
unearthly
Junior Playmaker
Posts: 62
Changing float subtract in one FSM from another
«
on:
November 27, 2018, 08:55:32 PM »
Hi guys,
What I want to do is to increase damage on an enemy (for just one level at a time). I have an FSM to display game objects which would be needed. From those game objects I want to trigger a small increase in a Float Subtract which is in another FSM. Three increases depending on how many of these game objects the player acquires.
How can I access and modify that Float Subtract Action on the Damage Enemy State in my Damage Manager FSM, from the FSM used to display those game objects (or perhaps from another working between both)? Hope the attached image helps.
Regards Charles.
Logged
Athin
Full Member
Posts: 163
Re: Changing float subtract in one FSM from another
«
Reply #1 on:
November 27, 2018, 09:14:43 PM »
Rather then having that flat number, turn it into a variable (to the right on the action, the button will make it a variable.) Then you can simply use the action Get FSM Int, do your math and then Set FSM Int to return the final value.
Logged
unearthly
Junior Playmaker
Posts: 62
Re: Changing float subtract in one FSM from another
«
Reply #2 on:
November 28, 2018, 12:38:22 AM »
Hi Athin,
I should have added that the FSM to trigger the Float Subtract modification is in another scene from the one the enemy is in.
Regards Charles
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Changing float subtract in one FSM from another