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 Discussion / DBC Parameter Mismatch with Sparky's Dll

Author
Message
Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 1st Jan 2007 19:14
From an advice from ruccus, i made this thread here hoping for more answers.. ( http://forum.thegamecreators.com/?m=forum_view&t=96693&b=7 )

sorry to be making another thread about collision so quick, but i really just want to learn..

Here is the current code:

And here is the functions.dba:


Ok, i wanted to learn how to use sparky's dll with dbc so i asked on the newcommers board. Ruccus showed me this code and i learned much from what he showed me. now, when i compile his code i get a parameter mismatch error. And i dont know why it is happening. if anyone knows why please tell me because i really need to know how to use sparky's dll to make games.. oh and if anyone can tell me what the oldx#,oldy#,oldz#,x#,y#,z# stand for and how do i know what numbers to put in there..

so to explain this in a few words, the problem i have is the parameter mismatch error i get. I cant figure out why it happens..


i like pancakes..
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 2nd Jan 2007 00:29
Lucifer... I explained that the oldxyz...xyz params mean... the oldxyz params are the starting position of the "laser", and the xyz are the ending position of the "laser".

Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 2nd Jan 2007 01:56 Edited at: 2nd Jan 2007 02:39
oh yeah.. sorry, i made the post when i just had woke up.. i was very very tired.. sorry..


i like pancakes..
Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 2nd Jan 2007 02:38
Ruccus, I LOVE YOU!!! i was messing around with the code and i suddenly got this idea!


just to put the numbers into the variables outside of the loop! and guess what! it works! i would never have learnt that without you! you are such a wonderfull person!

oh and my last question.. the oldy# and the z# variables thingzy's.. how do you know what numbers to insert there?


i like pancakes..
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 2nd Jan 2007 03:27
I hope you know the concept of 3D world positions. You do, right? 3D positions are handled by having an x, y and z coordinate.

To know where to put the starting point of the ray and the ending point of the ray is entirely up to you. For example, if you want to check if an object runs into another object, set the oldxyz to the player's position before they move, and set the xyz to the player's position after they move.

Im not trying to be harsh, but you seem to be having trouble grasping some fairly simple things in terms of programming logic. Id recommend reading some introduction tutorials (the pong game tutorial is always a good one) and then go back to collision. Collision isnt something to be taken lightly, it can get very advanced very quickly.

- RUC'

Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 2nd Jan 2007 03:51
Quote: "I hope you know the concept of 3D world positions. You do, right?"


of course, i have even finished a game ( http://forum.thegamecreators.com/?m=forum_view&t=94681&b=8 . http://forum.thegamecreators.com/?m=forum_view&t=88894&b=8 ) where i did all the beginner stuff.. i know these last posts make me look like
a noob, but i think i'm pretty close to figuring this out..

Quote: "Im not trying to be harsh, but you seem to be having trouble grasping some fairly simple things in terms of programming logic."


nah i wouldnt think so. Well of course i have problems with collision and when this is so new to me i find it hard to figure things out very quickly.. but i have 1 - 2 years of experience with visual basic, i have been in classes learning visual basic and all.. Direct x programming in visual basic is very different from darkbasic..

Quote: "Collision isnt something to be taken lightly, it can get very advanced very quickly."


those collision codes are always getting clearer and easier to understand. i am looking at collision codes and tutorials...


i like pancakes..
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 3rd Jan 2007 00:08
I only said that because you seem to still not be able to figure out what the oldxyz-xyz positions mean.

Login to post a reply

Server time is: 2025-05-26 05:08:49
Your offset time is: 2025-05-26 05:08:49