Help with Lesson 5 Beginner.

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
PoopLoser
Posts: 4
Joined: May 6th, 2013, 5:08 pm
Location: Lithuania

Help with Lesson 5 Beginner.

Post by PoopLoser » May 6th, 2013, 5:21 pm

So when I made my pointer thing move with arrow keys everything works fine I can move it for a while , but then suddenly an error came out of nowhere:

Unhandled exception at 0x002c1304 in Chili DirectX Framework.exe: 0x80000001: ?? ??????????????.

happened every time.
I was thinking that i made some kind of mistake that I can't see. So I started everything all over again from a new file and the same happened again.
so I want to ask if I did something wrong ? Maybe I can just ignore it and continue with tutorials ?
Sorry for my bad English.

User avatar
viruskiller
Posts: 399
Joined: June 14th, 2012, 5:07 pm

Re: Help with Lesson 5 Beginner.

Post by viruskiller » May 6th, 2013, 9:44 pm

can't remember exactly what is teached in lesson 5 but unless there is a code to stop the pointer going off screen you would crash the game every time you try to draw something outside the screen area.
so keep following the tutorials and i think chili will show u how to fix that:)

User avatar
PoopLoser
Posts: 4
Joined: May 6th, 2013, 5:08 pm
Location: Lithuania

Re: Help with Lesson 5 Beginner.

Post by PoopLoser » May 7th, 2013, 3:38 pm

Fixed it !!!
messed around a little bit with the code and it started working and I don't have an idea what I did. :)

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Help with Lesson 5 Beginner.

Post by LuX » May 8th, 2013, 2:08 pm

If you draw outside the screen, or in this case you probably went out of the screen, the program will crash. Basically you have an array of pixels and if you try to draw on a pixel that doesn't exists then it will crash. From the left and right you can move a bit on the outer side but top and bottom will crash immediately.
ʕ •ᴥ•ʔ

User avatar
PoopLoser
Posts: 4
Joined: May 6th, 2013, 5:08 pm
Location: Lithuania

Re: Help with Lesson 5 Beginner.

Post by PoopLoser » May 8th, 2013, 4:26 pm

Thank you LuX i think I now understand what was the problem wit my program.:)

User avatar
DreamBliss
Posts: 30
Joined: March 27th, 2013, 11:48 pm
Location: Lost on the Way
Contact:

Re: Help with Lesson 5 Beginner.

Post by DreamBliss » May 16th, 2013, 1:54 am

Remember to add the barrier of 5 pixels around the inside of the screen as detailed in later lessons.
You create reality in your mind,
Before experiencing it as reality,
So if you want to change something,
First change what you think about it.

Post Reply