Welcome Guest [Log In] [Register]
Welcome to Awsomisoft. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
DSAL - More new functions coming
Topic Started: Feb 26 2011, 06:42 PM (458 Views)
Gregg
Member Avatar
DS App Studio™
[ *  *  *  *  * ]
Hey All!

I have added new functions to the new beta(not released yet) that will allow users to do more complex things with their games and applications, such as gravity and restarting forms.

Here is the function for gravity:

Code:
 

setgravity(gravity value);

// Here is the function for restarting forms.
restartform(in quotes the form to restart);


I am still thinking about whether I should instead of using names for forms I should use indexes, such as the following:

Code:
 

createform(1);


There are other functions that I added as well:
Code:
 

incInt(name); // This increases a variable

decInt(name) // This decreases a variable


I am sticking with naming forms for now, unless the community wants different.
Offline Profile Quote Post Goto Top
 
sightlight
Member Avatar
FingerManiaDS
[ *  *  *  *  * ]
In the GUI of the program(DS App Studio), create a (room) that tells you the index number of the rooms you have created.


form/room("menu"); = (1)
form/room("play"); = (2)



Then, when coding use the Index Number or the name of the Room.

:)
Offline Profile Quote Post Goto Top
 
Gregg
Member Avatar
DS App Studio™
[ *  *  *  *  * ]
sightlight
Feb 26 2011, 07:18 PM
In the GUI of the program(DS App Studio), create a (room) that tells you the index number of the rooms you have created.


form/room("menu"); = (1)
form/room("play"); = (2)



Then, when coding use the Index Number or the name of the Room.

:)

Okay, now in order to create forms, you can use indexes or names, but each form must only use one of the types, so here is an example:
Code:
 


// Indexes


// Project Name: NDS App - AwsomiSoft - www.awsomisoft.com

// Description: this template is a very simple project it
// contains the basic code for a DS App Studio application

// Version: 0.4.6

// whenever using 2D or 3D you must use the start2D or 2D function
start2D(256, 256);

// first, you must tell it to start the first form
startform(1);
wait();
endif();
// and this creates the form. To add another form, just
// do createform and in quotes the name of the form.
form(1);

      say("Hello, World!");
     
endif();


Code:
 

// Using names


// Project Name: NDS App - AwsomiSoft - www.awsomisoft.com

// Description: this template is a very simple project it
// contains the basic code for a DS App Studio application

// Version: 0.4.6

// whenever using 2D or 3D you must use the start2D or 2D function
start2D(256, 256);

// first, you must tell it to start the first form
startform("Form");
wait();
endif();
// and this creates the form. To add another form, just
// do createform and in quotes the name of the form.
form("Form");

      say("Hello, World!");
     
endif();


I also changed creatform to just form.
Offline Profile Quote Post Goto Top
 
sightlight
Member Avatar
FingerManiaDS
[ *  *  *  *  * ]
I need to ask you what
Code:
 

startform();

does?

what does
Code:
 

createform(); does?


I ask this because i think startform should be createform and createform should be startform.


Creates, then start it.

(you create/make an airplane before you start using it. :) Just asking! :P

Offline Profile Quote Post Goto Top
 
Gregg
Member Avatar
DS App Studio™
[ *  *  *  *  * ]
sightlight
Feb 26 2011, 08:09 PM
I need to ask you what
Code:
 

startform();

does?

what does
Code:
 

createform(); does?


I ask this because i think startform should be createform and createform should be startform.


Creates, then start it.

(you create/make an airplane before you start using it. :) Just asking! :P

Well, think of it this way.

Let us say you were going to begin a science project. You first have to start it before you actually create everything for it.

Offline Profile Quote Post Goto Top
 
sightlight
Member Avatar
FingerManiaDS
[ *  *  *  *  * ]
I see now.

So createform(); now is form?


So Ill updated FMDS in a few minutes when you have answer [yes or no].
Offline Profile Quote Post Goto Top
 
Gregg
Member Avatar
DS App Studio™
[ *  *  *  *  * ]
sightlight
Feb 26 2011, 08:32 PM
I see now.

So createform(); now is form?


So Ill updated FMDS in a few minutes when you have answer [yes or no].

Depends what you are asking.
Could you ask the question again? I do not see the yes or no part of the question.
Offline Profile Quote Post Goto Top
 
sightlight
Member Avatar
FingerManiaDS
[ *  *  *  *  * ]
createform(); is now called form(); ?



So i can go and update the funtcion of the community project.
Offline Profile Quote Post Goto Top
 
Gregg
Member Avatar
DS App Studio™
[ *  *  *  *  * ]
Yes, in the new beta(not released yet) createform was changed to form.
Offline Profile Quote Post Goto Top
 
repulverized
Member Avatar
WiiGM creator
[ *  *  *  *  * ]
I wish gravity was ever added... :'( . I'm trying to make games with this but its way to hard to figure out gravity.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Advanced topics of DS App Studio · Next Topic »
Add Reply