Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Goombert

1516
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 03:16:22 AM »
var and globalvar are being removed from Studio anyway, all variables used will be declared, that doesn't mean initialized though.

http://gmc.yoyogames.com/index.php?showtopic=606791

1517
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 01:55:11 AM »
Oh wow, now that I am not sure, you'd have to ask Josh. It would probably be global int not vice versa.

1518
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 01:39:23 AM »
Ok, but I'm still pretty sure 4.5 integer would not make sense in any BASIC compiler that I know of, I think you're just remembering wrong.

But yeah, I also tested exactly what you had without me adding a colon, and it still worked fine and showed me the number 4.
Code: (EDL) [Select]
int a
a=4.50
show_message(string(a));

1519
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 01:17:39 AM »
Actually no, that call would show you 4, because int is not floating point, you want a float for fractional numbers, integers for whole numbers.

In fact, I just put the following in the create event of an object and it built fine, it was most likely erroring because you were implicitly casting a floating point to integer causing loss of precision.
Code: (EDL) [Select]
int ass = 5;Works fine in ENIGMA.

In fact, I just ran your code, and it built fine and showed me the number 4.
Code: (EDL) [Select]
int a=4.50;
show_message(string(a));

This shows me 4.5, so you're doing something wrong.
Code: (EDL) [Select]
float a=4.50;
show_message(string(a));

At any rate, it's a good thing for you to learn using these real data types and use them instead of var, because in GM or ENIGMA, it really is horrible, you have no idea how much is going on behind the scenes.

1520
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 01:00:52 AM »
Yeah, lol, you don't do int var, you just do int, var means variant meaning it overloads all the other types, a var is technically an int, so what you wrote was int int, which is gibberish.

1521
Off-Topic / Re: AGameAWeek.com
« on: April 28, 2014, 09:29:26 PM »
Sure, of course, I just like game development in general.

1522
Off-Topic / Re: AGameAWeek.com
« on: April 28, 2014, 09:11:31 PM »
Yes if you guys only posted about ENIGMA or GM I myself would probably find it pretty boring, Josh may differ, but I personally like discussion about all game development in general here.

1523
Proposals / Re: Script starting values
« on: April 28, 2014, 03:58:47 PM »
You shouldn't at all be afraid, Java is one of the easiest programming languages to learn, and one of the most powerful, it is a great solution for making software that works on different operating systems. You can also feel free to ask us questions in the subforum "Programming Help" and we will surely answer your questions.

1524
Issues Help Desk / Re: A few things (mostly variables)
« on: April 28, 2014, 03:10:53 PM »
Pretty sure arrays don't work currently, and also not sure why you want to duplicate an array of all the keyboard input, especially when you can just modify the one in Platforms, all you're doing is unnecessarily duplicating the data which already exists. Also, it would be helpful if you would upload the project that encountered the issue, just waiting until after you've gone and fixed everything, does not help me, I have no way of even remotely figuring out what went wrong, why do you people always do this? As soon as something goes wrong, immediately stop, close LGM, back up your project, and report it to me immediately.

1525
Issues Help Desk / Re: Some issues from a new member
« on: April 28, 2014, 03:08:18 PM »
I'll have to look into it when I have time.

1526
Proposals / Re: Script starting values
« on: April 28, 2014, 03:07:36 PM »
Well on the bright side, LateralGM is open source, you can easily change anything in it if you are experienced with Java.
https://github.com/IsmAvatar/LateralGM

1527
Issues Help Desk / Re: IDE tranparency flag issue
« on: April 28, 2014, 03:05:45 PM »
Well for one, when you save a GMX, which is 1200, make sure you create it it's own folder, that format requires you to create a folder to save in, or else you'll get your resources strung all over the place.

1528
General ENIGMA / Re: Inheritance Fixes
« on: April 28, 2014, 03:03:15 PM »
Oh no, it is on by default for GMK and GMX projects, and EGM's too, just not old EGMs.  (Y)

1529
General ENIGMA / Re: Inheritance Fixes
« on: April 28, 2014, 04:50:25 AM »
I can't really do that ego, I'd have to make a special exception for that one setting, right now the EGM reader just sees if you have the setting entered and if not sets it to 0/null/or false.

Anyway, the setting is so that people who use parenting only for collision detection, people like cheeseboy, but don't actually want the objects inheriting anything. The only reason I agreed to add it for him was so that if users had issues resulting from my inheritance additions they could turn it off and make sure its not my event inheritance code causing the issue.

1530
Programming Help / Re: function error
« on: April 28, 2014, 04:42:08 AM »
My mistake, nevertheless, it does not segfault and appears to work Harri, I just tested it.