TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Get an Attribute's Value before it changes?
Pages:
1
Get an Attribute's Value before it changes?
Mineat
Posts: 379
October 04, 2016, 11:21:02 am
How do I get an attribute's value as another attribute before it changes? This seems
like the hardest thing to do when coding, and I want to learn how before I can clean
up my StencylForge items and improve them.
Macroplasm
Posts: 38
October 04, 2016, 11:40:03 am
Set the recording attribute to the changing attribute before you change it.
For Example
If Damage =/= 0
Set Recorded HP to HP
Set HP to HP-Damage
Set Damage to 0
Pages:
1