Help and questions on programming the codebug
pigraham
Posts: 67 Joined: Sat Aug 15, 2015 1:41 pm
Post
by pigraham » Thu Aug 27, 2015 7:09 pm
That's interesting. I didn't know sprites could be compared.
BMS Doug
Posts: 61 Joined: Wed Aug 26, 2015 8:54 am
Contact:
Post
by BMS Doug » Fri Aug 28, 2015 7:47 am
I wonder if it is because you are comparing two different types of items (even though one is generated from the other).
Two different types of items can be compared to see if they are exactly the same but it handles it in a different way than comparing identical items.
Nope, doesn't seem to be the case .
The code viewer box doesn't seem to update everytime you open it. I'm gonna run through some variables.
Edit: fixed link
Last edited by
BMS Doug on Fri Aug 28, 2015 9:18 am, edited 2 times in total.
BMS Doug
Posts: 61 Joined: Wed Aug 26, 2015 8:54 am
Contact:
Post
by BMS Doug » Fri Aug 28, 2015 8:14 am
It seems to be that the sprite has to be initially set before the comparison will work.
This variant seems to achieve what you were looking for.
I don't know if this will work, I don't have my CodeBugs yet.
Edit: fixed link
Last edited by
BMS Doug on Fri Aug 28, 2015 9:18 am, edited 1 time in total.
pigraham
Posts: 67 Joined: Sat Aug 15, 2015 1:41 pm
Post
by pigraham » Fri Aug 28, 2015 8:56 am
BMS Doug wrote: It seems to be that the sprite has to be initially set before the comparison will work.
This variant seems to achieve what you were looking for.
I don't know if this will work, I don't have my CodeBugs yet.
Is that set to private? I get Error 403 Forbidden when I click the link.
BMS Doug
Posts: 61 Joined: Wed Aug 26, 2015 8:54 am
Contact:
Post
by BMS Doug » Fri Aug 28, 2015 9:12 am
pigraham wrote: BMS Doug wrote: It seems to be that the sprite has to be initially set before the comparison will work.
This variant seems to achieve what you were looking for.
I don't know if this will work, I don't have my CodeBugs yet.
Is that set to private? I get Error 403 Forbidden when I click the link.
No, But I when copied the URL from the webpage it was from edit mode, here is a working link:
http://www.codebug.co.uk/explore/codebug/497/
I learn more about using the codebug site every day: the original link was to the Create folder so will only allow me (the creator) to view it. For anyone else they will have to view it from the explore folder.
tomp
Posts: 1 Joined: Fri Aug 28, 2015 12:32 pm
Post
by tomp » Fri Aug 28, 2015 12:35 pm
Anonymous sprite comparison is now fixed.