+Ah! Posted September 5, 2018 Share Posted September 5, 2018 (edited) How can I add, subtract,, multiply or divide variables? These are very basic things in computing, can they be performed in earwigo? Cheers, Ah! Edited September 5, 2018 by Ah! Quote Link to comment
+Tungstène Posted September 5, 2018 Share Posted September 5, 2018 Yes, they can be performed. Assuming you declared two variables. Type must be "Number". (Don't pay attention to the strange language my browser uses): You could use arithmetic in a message: If you feel creative, you can also write some Author Code. You'll find this in the Cartridge tab: Then, you'll have to call the function in an event trigger: Reference: Earwigo Tips and Tricks / How do I show a value to the player? Quote Link to comment
+Ah! Posted September 5, 2018 Author Share Posted September 5, 2018 Thanks again for your quick reply. I have tried that and it works fine. I had tried ~~var_v1~~ + ~~var_v2~~ but I now realise that was stupid. Cheers, Ah! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.