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.

Newcomers DBPro Corner / help please

Author
Message
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 26th Feb 2003 11:17
rem setup
sync on
sync rate 35
hide mouse

rem placing the camera
make camera 1
position camera 1,0,0,0
color backdrop 1,RGB(0,0,0)
rem make the player
make object box 1,10,2,2
color object 1,RGB(255,255,0)
position object 1,0,-25,50

rem make ball
make object sphere 2,2
color object 2,RGB(0,255,0)
position object 2,0,-23,50

rem make the player move
do

if leftkey()=1 and object position x(1)>-30
move object left 1,1.5
if xvelocity#=0 then move object left 2,1.5
endif
if rightkey()=1 and object position x(1)35 then xvelocity#=0-xvelocity#
if object position y(2)>28 or object collision (1,2) then yvelocity#=0-yvelocity#
if object position y(2)
You never fails, only make mistakes.
Megaman Zero
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: United States
Posted: 26th Feb 2003 11:37
I cant understand what you want us to help you with, I think what you posted is a bit to little for us to know. What exactly do you need help with (what part of code, error if any, etc.?)

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Feb 2003 11:47
highlight your code and use the code tags ... can't help with so little code - or information

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 26th Feb 2003 14:16
Well his movement code doesnt look awesome, perhaps thats what he needs help with?

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 27th Feb 2003 00:27
The end of your code has been cut off because you used > and/or <. From what I can see, it looks like you are trying to use a velocity variable (user defined) with the existing move commands. The velocity variables won't do anything unless you move the objects by that amount, i.e. move object left 1,xvelocity#. Just moving an object won't put a velocity into the variable, you need to put the velocity into the variable yourself and use it to move the object or do other things.

This is a complete guess at whet you are trying to do, if this isn't right then re-post your question.

Once I was but the learner,
now, I am the Master.
Xlimun
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 27th Feb 2003 18:45
Perhaps look in the 3D tutorial on this site?

I'm positive it can help, although if it doesn't you may hurt me by puting more of that on the screen.

Try not to become a man of success, but rather try to become a man of value.
--Albert Einstein
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 28th Feb 2003 15:13
whoops forgott a bit of the code







Maby the code is better now, the problems I have are:

How to make randomized levels
When I am loadingin the bitmaps the screen turn black
Can´t have the ball kill the boxes in the level

NOTE THAT:The things that is the problems is not within the codesnippet. For one and another reason.

You never fails, only make mistakes.

Login to post a reply

Server time is: 2024-11-24 04:44:32
Your offset time is: 2024-11-24 04:44:32