Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / problem with code, please help

Author
Message
RebirthAnime
21
Years of Service
User Offline
Joined: 11th Oct 2002
Location:
Posted: 27th Sep 2003 09:40
Hey...I'm having problems with my code and can't figure out what's wrong. First off, my collision map. It should go around the outside of my map, over the trees, so that the player cannot walk over the trees, but for some reason whenever you start my game, my character can't walk to the left or up from his starting point (280x 240) yet he can walk down and right (for 610 pixels I believe) and then he his another collision wall or he stops for some odd reason. I was trying to make the tiles for collision to be 16x16 so as to be able to have parts of stuff nonpassable and other parts of the tile passable. My main tiles (the ground and trees) are 64x64, and all of my "get image" images are 64x64 except number 10, which is 16x16. 2nd of all, I've just noticed that for some reason my 3rd map (collision map) isn't showing black as transparent as the rest of the maps do, and all maps should. If anyone could tell me why it's doings these things I would appreciate it GREATLY! The hyperlinks go to my images for the program, if anyone needs them to see for themselves what's wrong with my program.

http://home.gcn.cx/ryuujin/blocks.bmp
http://home.gcn.cx/ryuujin/charwalkup.bmp
http://home.gcn.cx/ryuujin/charwalkright.bmp
http://home.gcn.cx/ryuujin/charwalkdown.bmp
http://home.gcn.cx/ryuujin/charwalkleft.bmp
Erusuwasu
20
Years of Service
User Offline
Joined: 21st Sep 2003
Location: Where am I? I think I\'m lost...
Posted: 28th Sep 2003 23:52
Quick question...

Is your code for DBClassic or DBPro? I tried to load it and your bitmaps so I could see what was going on and try to help, but it doesn't even get past line 6.

I've got DB Classic and PS Skillz and I'm not afraid to use um!
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th Sep 2003 03:24
Love to help but code too confusing.

Suggest you look at why you are using 'x' and 'y' in collision tests.

Trying to understand your logic of relationship between xpos,ypos, offsetx,offsety and how you are wanting screen to scroll when you approach edges.

If your mansion house needs haunting, just call Rentaghost!
RebirthAnime
21
Years of Service
User Offline
Joined: 11th Oct 2002
Location:
Posted: 29th Sep 2003 03:54
my codes for dbpro, and the xpos and ypos are for my character's movement, and the offsetx and offsety are the for scrolling of the screen. The screen stops scrolling once it reaches the offset limits so it looks like the maps stopping at the edge of the screen.

Login to post a reply

Server time is: 2024-05-05 14:29:58
Your offset time is: 2024-05-05 14:29:58