This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

MrCohen
MrCohen presents ...

2020/2/22

TestingColorAt

No description.

1306 views / 16 in the last 7 days

1 vote | 0 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.
danpostdanpost

2020/2/22

The terminal will always show the same Color(0, 0, 0) as the image of the actor does not change. You can bump up the speed of the scenario to help eliminate wait time as the background fills in.
MrCohenMrCohen

2020/2/24

Thanks Dan, It turns out that this wasn't the actual problem. I was getting a javascript error that made it seem like setColorAt was getting a null object. It turned out that I was hitting an object limit. Once I simplified some of my classes to maintain a spritesheet rather than a number of arrays of GreenfootImage, it eliminated the problem. This is the scenario I'm working on, if you're interested: https://www.greenfoot.org/scenarios/25314
SwaggyXiaoSwaggyXiao

2020/11/1

orz

Want to leave a comment? You must first log in.

Who likes this?

SwaggyXiao