Trying to figure out error MSG
-
Also, valueNo and suitNo don't exist at the top level, only within a function later down so as far as the program goes, it knows nothing about them.
-
It looks to me like you're using valueNo and suitNo in your print statements when you want to be using the custom properties you've assigned to the sprites already:
In your
getPack()
function, you have:sprite.value = values [valueNo] [1] sprite.suit = suits [suitNo] sprite.imageNo = imageNo
As @Martin pointed out, the
valueNo
andsuitNo
variables are local to the functions that create them. But, since you're using them to assign information to the custom propertiessprite.value
andsprite.suit
, then storing them in the cards array, you should use those properties in your print statements:drawText(30,150, 80, black, sprite.value) // I've added the missing commas Martin pointed out drawText(40,150, 80, black, sprite.suit)
I thought at first these would have to be
cards[i].value
andcards[i].suit
but since beforehand you writesprite = cards[i]
, this should be correct. -
Working perfectly now.....Thanks again !
-
Excellent! Very glad to hear it :)
-
I've been trying to frend you (Dave) but it says frend not found.
Is your # 5130-4176-1902 ? -
It seems that if you friend waldron your friend screens turns grey,
so now I want to friend fuze team members to stay safe.... -
@kendog400 That should have been fixed
-
Do you know Dave (Fuze Team) friend code ?
-
@kendog400 He doesn't seem to have published it.
-
As @pianofire says the issue with Waldron’s shares has been found and fixed. If you’ve tried again today and it’s not working please do let us know.
-
5139 4176 1902 thats daves, i shouldnt have any issues now been clear for 6 days!!!!!