Original Post

So I wanted to go through the code and see it working to get a sense of what code does what. The first problem I’m having though is if I press the button for “Run in mednafin” nothing happens. Same with the other emulators. I see the emulator in the folder as part of the VBDE so I’m not sure why it’s not starting up or at least giving me an error. Sorry for the easy question and thanks for the help.

5 Replies

Did you install it into C:\VBDE? Many paths are hardcoded to that.

I was thinking as I was trying to go to sleep and I think that might be the problem. I’ll try that soon. thanks.

vbde comes with a barbone project. make sure you compile it (button with green arrow) before you start it. It doesn’t do much though.

I don’t know if I should keep posting my question in here or make a new topic each time but I’ll start in here. So I’m looking through the code for the Demo2 game you can download from this site, and one question I have is how to find out what map coordinates to load into memory. Does VIDE give you the numbers or do you just learn from experience?

TheNix wrote:
I don’t know if I should keep posting my question in here or make a new topic each time but I’ll start in here. So I’m looking through the code for the Demo2 game you can download from this site, and one question I have is how to find out what map coordinates to load into memory. Does VIDE give you the numbers or do you just learn from experience?

The coordinates are in pixels, and they depend on the image(s) you’re storing in the BGMap in question. If you’re converting an existing image, you can get pixel coordinates using the mouse in most paint programs (usually somewhere on the status bar).

It sounds like you might need a better grasp of the VB’s graphics hardware, which is difficult to obtain just by looking at a few pieces of code. If you want to know all about Worlds, BGMaps, Objects, and Chars (as well as basically every other aspect of the VB), you should look in the “Tech Scroll” and/or the wiki – both are available under the “Development” menu at the top of the page.

Here’s a little hint, though: you need to subtract one from both the width and height values of a World, as a value of zero actually means “one pixel wide (or tall)”. For example, to get a full screen image, set width to 383 and height to 223.

BTW, I would just keep asking questions here, but it’s up to you to decide whether something warrants its own thread.

 

Write a reply

You must be logged in to reply to this topic.