Crashing
BlitzPlus Forums/BlitzPlus Programming/Crashing
| ||
I'm trying to add a bullet but when I run the code it crashes. Here's the code: http://pastebin.com/v5qXNm7K Thanks for any help. |
| ||
Probably typed some variable wrong... or drawing it wrong... |
| ||
Probably typed some variable wrong... or drawing it wrong... |
| ||
Run with Debug Enabled. |
| ||
already done that. I get the message "Invalid Image handle". |
| ||
I knew it had something to do with the drawing! |
| ||
how should I fix it? DrawImage(bulletImage,bulletXpos,bulletYpos) |
| ||
The image did not load successfully. The most common reason is that the program can't find the image file. As a temporary fix try using the full path and file name. The easiest way to get the full path is probably to navigate to where you have the image, right click on the file, select Properties and then copy the location. |
| ||
nope, doesn't work. |
| ||
Send us the current code. |
| ||
http://pastebin.com/VtbMJkhr Here you go! |
| ||
Use DebugLog after you have loaded the pic to check if it has been loaded successfully: If Not bulletImage Then DebugLog "pic not loaded" |
| ||
The debug doesn't say anything and I get the same error, "Invalid Image handle". |
| ||
DrawImage(bulletImage,50,50) This is the line that is highlighted in the debug and is apparently wrong. |
| ||
http://pastebin.com/REJ2P62v code updated. |
| ||
I fixed it, because we're talking over skype. Also because I'm so smart. |
| ||
Thanks Tom!! |
| ||
How have you fixed it? Last edited 2012 |
| ||
There was something with the image, and as I said I told DI this and he didn't belive me and then I fixed it. |