- Joined
- May 15, 2012
- Messages
- 207
- Reaction score
- 13
- First Language
- Profanity
- Primarily Uses
- RMVXA
Hey all,
I solved my previous problem and now I was just wondering if someone can help me simplify some logic I'm using.
I'm using
if new_value2 > @actor.param(2) draw_picture("uparrow", 204-43, dy + 22 * 2 + 8) end if new_value2 < @actor.param(2) draw_picture("down arrow", 204-43, dy + 22 * 2 + 8) end if new_value2 == @actor.param(2) draw_picture("equalarrow", 204-43, dy + 22 * 2 + 8) endbut I'm sure there's a way to simplify this. Doing it this way would give me over 81 lines for all the things I'm displaying =_=;
I solved my previous problem and now I was just wondering if someone can help me simplify some logic I'm using.
I'm using
if new_value2 > @actor.param(2) draw_picture("uparrow", 204-43, dy + 22 * 2 + 8) end if new_value2 < @actor.param(2) draw_picture("down arrow", 204-43, dy + 22 * 2 + 8) end if new_value2 == @actor.param(2) draw_picture("equalarrow", 204-43, dy + 22 * 2 + 8) endbut I'm sure there's a way to simplify this. Doing it this way would give me over 81 lines for all the things I'm displaying =_=;

