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 / [LOCKED] please help!!!?

Author
Message
DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 00:34 Edited at: 22nd Jan 2012 23:22
dont even comment i edited because of my spam

let the darkness privail
YavinB
16
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Ontario, Canada
Posted: 22nd Jan 2012 02:28
Hello, If you can, please post the code when you try to load the image and all that. We need something to work off of.

Not to shoot down your balloon, but to make games it takes alot of time and skill to do. There are loads of things you'd have to know to finish it.
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 22nd Jan 2012 04:00
You need to post what your problem is in order for people to help, dude.


DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 16:17
idk how to post a code snippet

let the darkness privail
DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 17:14


is this the right way?

let the darkness privail
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Jan 2012 17:24
Loading the images into memory won't display them on your screen... You have to paste them there for them to show up.



TheComet

DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 17:27
its still black though the mouse disappears in it though so im getting closer

let the darkness privail
DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 18:26
ok what iv got is a black screen and no menu and no music playing with this


let the darkness privail
Rockstar AP
14
Years of Service
User Offline
Joined: 19th Jan 2012
Location:
Posted: 22nd Jan 2012 18:57
hello.....
i just cant seem to produce a fast bullet out of my character(box)...
plz help!!!!!!

here is my code


Rem Project: prac1
Rem Created: 1/23/2012 7:56:57 PM

Rem ***** Main Source File *****
sync on
set window off
hide mouse
autocam off

`set some starting variables
facing# = 0 :`direction camera is looking left and right
pitch# = 0 :`direction camera is looking up and down
camera_distance# = 50 :`how far camera is away from player
camera_height# = 10 :`distance above player camera is pointing at

movement_speed# = 0.5 :`how fast the player moves
turn_multiplier# = 0.1 :`a factor that controls how fast the player turns left and right
pitch_multiplier# = 0.1 :`a factor that controls how fast the player looks up and down
jump_speed# = 0.5 :`initial jump speed


gravity# = 0.003 :`gravity


`make something for the ground and a cube to represent the player
make matrix 1, 1000,1000,10,10



make object cube 1, 10
position object 1, 500,5,500
`main loops
do

`arrow keys to move the player
if upkey() = 1 then move object 1, movement_speed#
if downkey() = 1 then move object 1, movement_speed#*-1
if leftkey() = 1 then move object left 1, movement_speed#
if rightkey() = 1 then move object right 1, movement_speed#

`jump controls
if jump = 0
if controlkey() = 1
`set the velocity in the y direction to the initial jump speed
y_vel# = jump_speed#
jump = 1
endif
endif

`calculate vertical velocity and move object in the y axis
y_vel# = y_vel# - gravity#
move object up 1, y_vel#

`check to see if the object has hit the ground
if object position y(1) < 5
`stop the object from falling
position object 1, object position x(1), 5, object position z(1)
`set velocity in the y direction to zero
y_vel# = 0
jump = 0
endif

`mouse to look left, right and up, down
move_mouse_x# = mousemovex() :`write mouse move to variable
move_mouse_y# = mousemovey() :`write mouse move to variable

`calculate the direction the player and camera is facing
facing# = wrapvalue(facing# + move_mouse_x#*turn_multiplier#) :`left and right
pitch# = wrapvalue(pitch# + move_mouse_y#*pitch_multiplier#) :`up and down

`restrict up and down movement camera pitch
campitchtest# = wrapvalue(pitch#+180)
if campitchtest# < 90 then pitch# = 270
if campitchtest# > 270 then pitch# = 90


`rotate the cube (player) to the new facing left and right
yrotate object 1, facing#


`this is the first method for camera control
set camera to follow object position x(1), object position y(1), object position z(1), facing#, camera_distance#, camera_height#, 10,0
`this line lets the player look up down
xrotate camera pitch#


set cursor 0,0
print "use arrow keys to move, mouse to look and control to jump"

print
center text screen width()/2,screen height()/2,"+"

sync

loop

A.P
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 22nd Jan 2012 20:28
@Rockstar AP
HOW's your problem related to the @DarkLord5656a's problem?

DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 21:29
sorry im new to this i dont know any of that codeing @rockstar ap

let the darkness privail
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Jan 2012 21:34
Multiple problems here:

1-DarkLord5656a- Using unhelpful thread titles will get you slapped by a moderator.

2-Post CODEZ if you want halp!!!

3-Rockstar AP- you will also get slapped if you hijack someone elses thread. Just start a new thread it's easy, go into the forum where you think you might get help and fill in the form at the bottom of the screen but;

Please read the forum rules before posting like this! People will get annoyed and will spend more time complaining (like I'm doing) than helping!

A note to all newbies: The newcomers forum can be found HERE

Please try some tutorials and have some patience BEFORE posting a lot of questions.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Jan 2012 21:39
You don't seem to understand the following:

1) How a forum works
2) How code is executed

1) A forum is made of "threads", which all have "posts" in them. The posts in these threads should be relevant to the theme of the thread. Rockstar AP is a prime example of how not to use a forum. You posting in one of my threads labeled "glowing effect" about your problem here is also not how to use a forum. You need to post here about your problem.

2) A program's code is executed from top to bottom. In the code you posted, you try to load music and do other stuff beneath the main loop. A loop is something that runs for ever. So the code you added will never be executed

I suggest you stop doing what you're doing right now and start exploring some of the many tutorials this website offers. Learn how to write code, and experiment with all of the examples available.

TheComet

DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 21:46
1 i am new for the 3rd time iv said in the forums
2 idk were all of the things here is
3 i already knew looping because thats the 1st thing i did
4 all i know is to make a spinning cube
5 i couldnt find a tutorial page
AND
6 im working on a hard 2d way

let the darkness privail
DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 23:16
before you say something batvink i saw your 2 other posts why cant you delete them?

let the darkness privail
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Jan 2012 23:36
Weird. When I view this thread the first post seems to be a reply by YavinB.

Can someone explain why? Post moderation doesn't seem to cover it since later posts appear.
DarkLord5656a
14
Years of Service
User Offline
Joined: 21st Jan 2012
Location: in the underworld
Posted: 22nd Jan 2012 23:48
because im new and i edited it its waiting approvel @green gandalf

let the darkness privail
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 23rd Jan 2012 00:53
Yes, this thread seems to be broken. Original post is missing, no proper information has been given and now it's been hijacked.

Please, if you are new to DBpro and need help, go to the NEWCOMERS forum to ask questions. It's very easy, you can find it here.


JLMoondog
Moderator
17
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 23rd Jan 2012 02:07
I'm confused myself. If your new, then goto the newcomers forum as CumQuaT linked and ask your question.

For better results please title the thread with the actual problem and what language you are using. In the thread post the code that is not working and any screenshot that may show the error in-game.

Hope everything works out.

Login to post a reply

Server time is: 2026-07-10 21:16:50
Your offset time is: 2026-07-10 21:16:50