Copy link to clipboard
Copied
The information can be found in the image below please let me know if you can't read it. The reference to "Awsome Game Folder" in the output screen can be attributed to the following Box2D zipped file downloaded from the following address if you want to follow along. its http://sourceforge.net/projects/bpx2dflash/ Line # 21 on this image should be world.clearforces();
Additionally the same problem occurs with this code which is the next code in the process
if you want to hire me, send an email via my website: http://www.kglad.com>contact.
to solve the problem in your first code snippet, delete line 14.
Copy link to clipboard
Copied
world is null in your first code snippet.
that's because you defined two different variables to have the name world. one, that's global to your Main class and one that's local to your Main constructor.
that's an error. you certainly wouldn't want two same named variables referencing different objects.
Copy link to clipboard
Copied
Sir, So how do I fix it? I am copying this straight from a text book so I don't get why its wrong.
Copy link to clipboard
Copied
Whats your phone number?
Copy link to clipboard
Copied
if you want to hire me, send an email via my website: http://www.kglad.com>contact.
to solve the problem in your first code snippet, delete line 14.
Copy link to clipboard
Copied
and the second one code snippet?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now