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.

Author
Message
Silence
13
Years of Service
User Offline
Joined: 14th Oct 2012
Location:
Posted: 19th Feb 2013 19:03
I added more walls to my game to make a house, it consists of three boxes to make a 2D look to it.



Walls 2,3,4, and 5 make the entire playing field. They all have collisions on them



Now since I added these three new boxes to make the 2D looking house, How does one put the correct collisions on it so they cant walk through them? There are three boxes and a hole in the middle to mimick an open door
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 19th Feb 2013 20:25
The absolute simplest way would be to use AUTOMATIC CAMERA COLLISION.

D.D.
Silence
13
Years of Service
User Offline
Joined: 14th Oct 2012
Location:
Posted: 19th Feb 2013 21:34
And what does that do? How can I use it?
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 19th Feb 2013 22:25 Edited at: 19th Feb 2013 23:47
Just hit F1 in the DBPro editor and the help screen will appear:


Quote: "Automatic collision takes over the task of adjusting the camera when it hits an object in the 3D scene. Cameras with automatic collision use a collision sphere of the specified radius. If the Response value is set to one, the new position backtracks to the last collision free position when a hit occurs.

Spheres and boxes are solid objects, and so collision can only occur when they collide together. When an object is entirely within another object, even though the geometry is not touching, the collision is still valid as the larger object would be a solid construct. If the additional "Stand Ground Mode" value is set to one, the camera cannot be pushed by other objects. The default is zero, which allows the camera to be pushed around by other objects."


D.D.
Silence
13
Years of Service
User Offline
Joined: 14th Oct 2012
Location:
Posted: 20th Feb 2013 04:19 Edited at: 20th Feb 2013 04:24
Okay, I think I fixed it. Now hopefully what I do next wont mess up the collision. You see I am confused. I made a floor for the game and the texture is repeated in squares. I dont remember ever doing that. How can I make it so that the texture covers the object as a whole and doesnt repeat itself in small squares?



I dont think that part of the code has anything to do with it.
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 20th Feb 2013 04:51
Quote: "scale object texture 6,50,50"


this is causing the repeat.

when scaling the texture, anything over 1 makes the image smaller and increases the amount of repeat, anything < 1 makes the image larger and stretches it.

here, scaling it at 50,50 will cause it to fit 50 copies of the image horizontally and vertically, (U,V) into the space that 1 image would cover at scale 1,1

Silence
13
Years of Service
User Offline
Joined: 14th Oct 2012
Location:
Posted: 20th Feb 2013 16:07
Thank you so much! It worked like a charm! And thank you for explaining it and making me understand as well.
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 20th Feb 2013 20:47
sure thing

Login to post a reply

Server time is: 2026-07-07 05:14:42
Your offset time is: 2026-07-07 05:14:42