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

2024/4/26

help with null

DaCoder DaCoder

2024/4/26

#
I'm trying to make a program where things bounce around and if you hit one you restart. however, the collision thing wont last long enough for the other classes to do what they need to do. what can I use that is the opposite of null so i can make (x != null) true for a certain amount of frames?
danpost danpost

2024/4/26

#
DaCoder wrote...
I'm trying to make a program where things bounce around and if you hit one you restart. however, the collision thing wont last long enough for the other classes to do what they need to do. what can I use that is the opposite of null so i can make (x != null) true for a certain amount of frames?
No codes given plus very vague on description. Be specific and show all related class codes. Quote this to see how the following code is embedded:
import greenfoot.*;
Note the bookends around the code
You need to login to post a reply.