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 / making things and stop

Author
Message
vman187
9
Years of Service
User Offline
Joined: 21st Jan 2015
Location:
Posted: 22nd Feb 2015 21:23
how would go about making an object move from 1 part of the screen and stop at another spot on screen i am new to this and still trying to figure out how to make things work
vman187
9
Years of Service
User Offline
Joined: 21st Jan 2015
Location:
Posted: 23rd Feb 2015 01:23
i figure this out but is this the right way of doing it or is there a better way
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 23rd Feb 2015 17:41
How you code the movement of objects vary on what you want the object to do. In the first snippet I have annotated and indented your code to explain what’s going on.

The second snippet hopefully will illustrate better methods of coding something like this.



vman187
9
Years of Service
User Offline
Joined: 21st Jan 2015
Location:
Posted: 23rd Feb 2015 20:12
Thank for explaining things I have been messing with Darkbasic pro for a month now and still trying to figure out how things work and you explaining things I would just like to say thanks
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 23rd Feb 2015 22:18 Edited at: 23rd Feb 2015 22:29
You are welcome. The first things a beginner needs to familiarize themselves with are the most boring aspects of programming. But, once you become familiar with the concepts of data types, variables and variable scope as well as the control structures and the use of functions and subroutines, there will be no stopping you.

I have attached Nickydude's Beginners Guide to DBPro. This PDF document is a great resource for learning DBPro programming.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-27 05:30:49
Your offset time is: 2024-11-27 05:30:49