Page 1 of 1
DSGM Coding Documentation
Posted: Sat Sep 05, 2020 8:47 pm
by DigitalDesignDude
These are some essential DSGM Coding Documents that will help you go beyond just using the default action blocks in DSGM and actual write your own code!
I happen to have had these backed up before the original DSGM Forum went down so I hope they'll help whoever needs them or wants to learn.
If you have never coded before, you can still do a lot with action blocks alone, but at some point, you likely find they can take a while to scroll through and you may have difficulty re-ordering them later due to DSGM's somewhat restrictive interface .
In fact, writing code is essentially the same as using blocks, except you have to type them, and there can't be typos otherwise the game cannot run.
https://drive.google.com/drive/folders/ ... sp=sharing
Re: DSGM Coding Documentation
Posted: Mon Sep 07, 2020 3:58 pm
by Ruffsta
Thank you for sharing that! i'll download these at some point and put them on the website eventually
Re: DSGM Coding Documentation
Posted: Tue Jan 19, 2021 1:04 am
by SWEET_TOOTH
Could anyone share some coding examples? I would like to see code in action. For example, I declare a global variable in an object by code:
declare Public speed As integer = 0;
and when I try to acces that variable from same object, it gives error: GameWorks.h:57:37: error: 'speed' undeclared (first use in this function)
how do I call that variable using different events of the same object? I also tried:
[Me].speed
[Me]."speed"
"speed"
Re: DSGM Coding Documentation
Posted: Tue Jan 19, 2021 7:35 pm
by Ruffsta
i'm strictly a 4.9 user.. so i know nothing about 5.12.. but i'm sure someone will answer your question soon... some people are on vacation so i can't say when.. but soon i hope