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.

DarkBASIC Professional Discussion / Background colored sreen glitch thing? And one other question...

Author
Message
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 26th Aug 2010 20:55 Edited at: 27th Aug 2010 22:49
(I did use Dark Physics but I don't think thats the problem)

Ok I made a basic map, and I made it so if you fall off you die (object 3) but when you start again you can't move, does anyone know why? And after you go down the big ramp the screen messes up (becomes the color of the background)



EDIT: here I attached the RAR file so you can test it out, unzip, then just run the application (as administrator) If you die you have to restart the program cause of a glitch.

EDIT 2: solved all except A level bug (read bottom)

I want coke, not Pepsi!
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 26th Aug 2010 21:14
I'm not sure what the problem is and I don't have the right drivers to test it right now, but why do you have phy add rigid body force before you create the player's rigid body? Or maybe I just don't know the use of that command since I don't use Dark Physics too often. Anyway try commenting that out and see if it does anything.


Guns, cinematics, stealth, items and more!
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 26th Aug 2010 21:56
You are doing 'goto Start' if the player 'falls off the map' right?
Your 'Start:' is at the beginning of your program. If you want to do it that way, you need to undeclare all your physics stuff and all your meshes before you 'goto Start'.

I won't be able to help you with anything to do with DarkPhysics because I don't have it, but my suggestion may get you on the right track.

The fastest code is the code never written.
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 26th Aug 2010 21:56 Edited at: 26th Aug 2010 22:19
Oh, I was just testing that to see if it made any difference, my MAIN problem is the backdrop screen when I go too low in my level.

Quote: "You are doing 'goto Start' if the player 'falls off the map' right?
Your 'Start:' is at the beginning of your program. If you want to do it that way, you need to undeclare all your physics stuff and all your meshes before you 'goto Start'."


How would I go about like phy off? Or deleting the static and dynamic commands? Anyone? or phy gravity off

A small change in the code by the way:



EDIT:
I solved the bluescreen, now only need help with the death
My new code: (I simply rasied the entire map so it doesn't get below)


I want coke, not Pepsi!
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 26th Aug 2010 22:58
I would go with what what Sixty squares highlighted first as that does seem odd, then follow up what Hawkblood has pointed out, though you may not need to restart the entire physics simulation - you must however at least destroy and recreate objects, or reset the forces for those objects in order to regain control of them succesfully. I have this plugin though its not installed(will do so shortly to take look at your issue), however I`ve a fair bit of experience with Newton plugin and this is the way I would do it if I was using Newton. There are quite a lot of simalarities between these plugins regarding there control over dbp objects, but Newton requires a little more code than Dark Physics. It also appears more solid with regards to its functionality capabilities even though Dark physics has areas of physics Newton doesn`t have(plus the vehicles are rubbish in DP).
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 26th Aug 2010 23:04 Edited at: 27th Aug 2010 19:35
Solved this part.

I want coke, not Pepsi!
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 27th Aug 2010 19:34 Edited at: 29th Aug 2010 04:03
Never mind I'll make a new thread for it.

I want coke, not Pepsi!
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 28th Aug 2010 18:51
Bump

I want coke, not Pepsi!

Login to post a reply

Server time is: 2026-07-23 12:21:58
Your offset time is: 2026-07-23 12:21:58