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
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 22nd Oct 2003 21:35
can some one just proof read this moving code for me

cheers

CLear Coder
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Oct 2003 21:41
Not complete - whats wrong with the code ?


Avatar & Logo by Indi. Insert witty comment here...
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 22nd Oct 2003 22:03
it surposed to move object 1 either left right up or down depending or where he is it will as do the collision and see if he can move there colblock() and if he is changeing levels he will be positioned on the new level block this code is in the main loop for more information and some screens go to the old thread

http://darkbasicpro.thegamecreators.com/?m=forum_view&t=18802&b=1

thx

CLear Coder
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 23rd Oct 2003 17:08
sorry i see what you mean now coding area heres the full code



if doesn't fit in the link one

thanks

CLear Coder
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 25th Oct 2003 16:45
has any one got any ideas on the problem coz i'm fresh out of them.

CLear Coder
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 25th Oct 2003 17:32
Clear_Coder

If you can't provide code that executes, then how about some comments in your code at least!

I was too tired to follow along without comments tonight, but hopefully I or someone else will look at it tomorrow.

Still, any comments in your code would help.
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 26th Oct 2003 12:58
okay the code was orginally writen in db the idea is its the movement code for the player on a grid this grid has places blocked off, if colblock is 1 at that point then the player can not go there. this grid also has different levels these are shown in the block array if it is 0 that point in the grid is at level 0 there are 3 levels 0,1 ans 2.

here is the code which comments and an executable form although obiviously it doesn't work



cheers

CLear Coder
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 26th Oct 2003 21:38
Try this approach it is very versatile



System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 27th Oct 2003 14:35
sorry codger that code didn't work!

has any one found the error in my code the wierd is that as i said i works fine in db but not in dbpro

CLear Coder
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 27th Oct 2003 18:43
Clear Coder 1st Change your name

2nd My code does work, although it may not function for your needs because nobody appears to understand what you want the program to do.

Would you please detail what you are intending to accomplish?

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 27th Oct 2003 20:13
what how can you not understand its the code for the player input and the movement of the player pawn. thats it!

CLear Coder
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Oct 2003 20:32 Edited at: 27th Oct 2003 23:53
OK found your problem. Main problem is that DBPro can not reference indexes in arrays with floats, so change

playerwherex# to playerwherex

and

playerwherey# to playerwherey

This gets the cube moving around properly and should help you a great deal.

If your mansion house needs haunting, just call Rentaghost!
Shadow Lord
22
Years of Service
User Offline
Joined: 26th Sep 2003
Location:
Posted: 27th Oct 2003 22:35
Quote: "playerwherey# to playerwherex"


Oooops, small typo there....should be...

playerwherey# to playerwherey

I'm using DBPro to write "Suger Free Candyland", for diabetic children!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Oct 2003 23:55
Quite correct Shadow Lord - my cut 'n' pasting was a bit dodgy. Have edited post so now reads correctly.



If your mansion house needs haunting, just call Rentaghost!
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 28th Oct 2003 00:05
cheer so that long ish thread could have been alot smaller cheers spooky

CLear Coder

Login to post a reply

Server time is: 2026-07-26 16:02:28
Your offset time is: 2026-07-26 16:02:28