Search found 3 matches

by aflin
Mon Nov 21, 2016 10:55 am
Forum: Talking LiveCode
Topic: Help calling variables
Replies: 4
Views: 4194

Re: Help calling variables

Thanks Klaus, your insight has been invaluable and has likely saved me from tearing my hair out over the next week. I'll be implementing the changes as soon as possible and I'll let you know if it works (if I remember to post that is).

Also you're welcome ghettocottage, but I just felt like this ...
by aflin
Thu Nov 17, 2016 4:22 pm
Forum: Talking LiveCode
Topic: Help calling variables
Replies: 4
Views: 4194

Re: Help calling variables

SLIME BUTTON

on mouseUp playerattack, enemyattack
put 2 into playerattack
hide image "skeleton1" show image "slime1" hide image "goblin1"
if enemyattack = 2 then
send success to button "Launch"
else
send failure to button "Launch"
end if
end mouseUp


GOBLIN BUTTON (doesn't do anything ...
by aflin
Thu Nov 17, 2016 4:18 pm
Forum: Talking LiveCode
Topic: Help calling variables
Replies: 4
Views: 4194

Help calling variables

I've been having trouble calling a variable for a computing project I'm doing at school. The variable in question is called "enemyattack" and should be used to determine whether or not the player's attack is successful or not. In every attempt I've made to fix this the player loses, even when they ...