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 - hpg678

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 »
196
Tips, Tutorials, Examples / A Pop up Message Example
« on: September 26, 2017, 04:10:15 pm »
ENIGMA DIALOG functions doesn't work in the LINUX version like in the WINDOWS version. So I had to circumvent otherwise to produce such action.

In the example provided, we have a background sprite and two button sprites for the MOUSE ENTER and MOUSE LEAVE events. I've also used a script to create some highlighted text on the background sprite.

An object is created as our Button object to control events such as when the MOUSE ENTER, LEAVE and PRESSED.
Another object draws our background sprite, calls up our script and creates our our BUTTON object at the relevant position we want it to appear.

I've also created a CONTROLLER object that puts it all together.

Check it out and tell me what you think.

The program file can be downloaded from here https://www.dropbox.com/s/1qs5pe573pap9dp/dialog_test.zip?dl=0

197
Graphics and Video / Re: Enigma Wallpaper
« on: September 26, 2017, 10:39:51 am »
In the LINUX version of ENIGMA the function to create Dialog or Message boxes like those in Windows version is pretty much not working. So I decided to create my own starting with a Dialog Window Shell graphic and this is what I came up with.


I also did a series of Buttons to use with the frame which I will place in a sprite sheet.

198
Tips, Tutorials, Examples / A Pop up Message script
« on: September 25, 2017, 12:37:24 pm »
the objective of this project is to create a message box calling a script named "scr_show_message()". The idea is to place any text in between the () and it will be displayed.

the code in the script is this

Code: [Select]
var message;
message=argument0; // use '#' to write text on a new line

var bg;
bg=spr_message_bg; //sprite used as a background

var box_x, box_y, box_height, box_width;
box_width=5+string_width(message)+5;
box_height=5+string_height(message)+5;
box_x= (room_width/2) - (box_width/2);
box_y= (room_height/2) - (box_height/2);

draw_sprite_ext(bg,0, box_x, box_y, box_width/32, box_height/32, 0, -1, 1)
draw_text(box_x+5, box_y+5, message);


when you call it from the DRAW event you should be able to see a pop-up message the length and height according to the text you place in ().


https://imgur.com/3FiRw0G

199
Programming Help / Re: GTK WIDGETS
« on: September 25, 2017, 12:34:51 pm »
You would need to use your package manager to get the gtk headers. But it's not really worth it at this point because I couldn't even get it to build. The whole GTK thing needs rewritten.

oK! then so what about the GUI Extension? When I try to use it runs but nothing comes up the output screen.

200
Programming Help / GTK WIDGETS
« on: September 25, 2017, 09:29:02 am »
I've tried to use the GTK Widget but I keep getting an error "/GTK/gtk.h" is missing? How can this be resolved so I can use GUI buttons and dialogs in LINUX?

201
General ENIGMA / Re: Testing ENIGMA on Different Linux Distros
« on: September 25, 2017, 07:57:03 am »
So i did install a 32-bit version of Maui and it still did not work. Tried Antergos 32bit(Arch LINUX), still did not work. Did a  a fresh install of MX LINUX and it worked,  no errors whatsoever.

Now this may not be of interest to most of you as the majority use WINDOWS as your main OS. At least that's the impression I get. However, at some point you may need to test or create on the LINUX platform and you would need to use a distro that works as far as ENIGMA is concerned.

The types of errors I received ranged from running the installation script, compilation errors, missing dependencies  to java errors, obsolete repositories and requests to install alternate versions of dependencies. All of which was dependent on what I was trying to install.

Yet for some reason i got no errors when  I use MX LINUX. I find this curious and interesting. Just what is about this particular distro that the others lack? it is indeed a mystery.
The install script is not designed for any distros other than Debian based ones, MX LINUX is Debian based

I  had also tried on other DEBIAN distros long before i came into contact with MX LINUX. I've even had some success with some of them namely TRESQUEL, DEBIAN 8, 9, and Ubuntu 14 to name a few. However on LINUX MINT and newer versions of UBUNTU and other DEBIAN-based distros, I've encounters all types of errors. Some were even quite strange quite frankly. take case where when I included 'string' in a statement an error occurred. In the Windows version , no such errors occurs. On other distro installations, I don't get that error but another one. Another time, LateralGM loaded fine, but when I tried to run, it shutdown prematurely.

HOWEVER, when it came to MX LINUX i received no such errors. Everything runs perfectly and that is what I find interesting. I didn't have to include, change any settings on the OS, or do anything to it. just update and go.

Its quite remarkable and mysterious, at least to me. Any why other popular DEBIAN distros fail so? I not asking anyone directly for an answer, but you must admit it is quite strange.

And by the way, All the distros I test are DEBIAN based. Even the version of OPENSUSE during the testing I do.

202
Third Party / Re: DnD to GML utility
« on: September 25, 2017, 04:39:02 am »
Forgive me but when it comes to YOYOgames, I tend to fly off the handle sometimes.  In regards to this aspect of the discussion let me say this.

like most people I had been with Gamemaker when Mike Overmars was in charge. I even stayed with it for a brief period during version 8, HTML, version 1.2 and stopped at version 1.4. With the introduction of LINUX export and got excited but wait a minute .......I would need a LINUX machine to export to. To me that doesn't make sense. I may as well program on the LINUX machine was my chain of thought. In order to port to the other platforms, I would need to buy that machine, then pay separately for that export for that machine. All within a time frame of 1 year to make money to break even or make a profit.

With software like Virtualbox you can have a simulated account of what it would like but that is not the same thing as working in the actual environment.

203
General ENIGMA / Re: Testing ENIGMA on Different Linux Distros
« on: September 25, 2017, 03:04:24 am »
So i did install a 32-bit version of Maui and it still did not work. Tried Antergos 32bit(Arch LINUX), still did not work. Did a  a fresh install of MX LINUX and it worked,  no errors whatsoever.

Now this may not be of interest to most of you as the majority use WINDOWS as your main OS. At least that's the impression I get. However, at some point you may need to test or create on the LINUX platform and you would need to use a distro that works as far as ENIGMA is concerned.

The types of errors I received ranged from running the installation script, compilation errors, missing dependencies  to java errors, obsolete repositories and requests to install alternate versions of dependencies. All of which was dependent on what I was trying to install.

Yet for some reason i got no errors when  I use MX LINUX. I find this curious and interesting. Just what is about this particular distro that the others lack? it is indeed a mystery.

204
General ENIGMA / Re: Testing ENIGMA on Different Linux Distros
« on: September 24, 2017, 08:34:46 am »
Ok so here's an update to the testing on Maui. I loaded an example Pacman game file and there's some errors pertaining to converting and writing string statements. Whether this is a compilation error or a runtime error, I don't know. However it doesn't seem to work as well as I would hope. It may even be a slight problem. I'll look into it at some point.

So I'm going to try an 'ARCH' distribution named ANTERGOS. In the meanwhile I'll also download a 32bit version of MAUI and try that as well.

205
General ENIGMA / Testing ENIGMA on Different Linux Distros
« on: September 24, 2017, 06:29:05 am »
Some days ago during hurricane Maria's passing, my Windows computer died through a blackout caused by our Electric Utility Company.  they made up an excuse saying it was a lightning strike but I assure you it was not, since there was none during that day and as I live not to far from the facility.
Therefore I had to build another WINDOWS computer. Luckily I had one laying around so I put in some spare parts and now its up and running. I installed Windows 7 OS, Game Maker 6, 8 as well as Game Maker Studio 1.4 portable as well as a few other applications.........NeoPaint as my graphics editor, LibreOffice 5 as my productivity suite and ENIGMA portable.

A few days after my Linux Desktop computer began acting weird, lagging, certain project files not working properly on linux but working fine in Windows. So I decided it would be a good opportunity to test some other LINUX distros and see if ENIGMA would work on them.

The first on my list was LINUX Mint one the most popular. No luck there. I even tried an older version but the repositories did not exist anymore. the next on my list was OpenSuse which, failed miserably. There were no rpm packages for certain dependencies, so that also was a bust.

Next up was a much newer distro called FEREN Linux. It's a relatively new distro coming out with its latest version sometime in August this year. I downloaded the 64bit version and got no problems installing it. However when I ran ENIGMA, a familiar error message about not finding 'compileEGMf' popped up. Incidently, when I test ENIGMA on a 64bit OS, I get this error. However on a 32Bit OS, that error doesn't appear.

The one which I ended up is called MAUI LINUX. It is based on KDE NEON and UBUNTU with the PLASMA Desktop. In fact i am writing this on the same Maui Linux and so far it is impressive. I have yet to get any major errors on the 64bit version I am using. So for the next few days I will be testing this.

If you're interesting in checking it out, you can got to its homepage and have a look.

206
Third Party / Re: DnD to GML utility
« on: September 21, 2017, 09:48:00 pm »
The program is indeed outdated but still quite useful.....like I said....... just thought it would be useful for newbies to ENIGMA to learn EDL as itt converts Drag and Drop actions into the relevant EDL/GML code.

I prefer to code in EDL but at times when I'm stuck on something, I use Drag n drop, then use that converted code. Unfortunately, for some reason, i can't get GMS2 to work on either my laptop nor one of my desktops. Both of which has 64bit cpus in them. I don't really care that much any way, since they dropped LINUX support.



207
Off-Topic / Re: Developing Games
« on: September 20, 2017, 10:48:43 am »
Like many users, I grew up in the Windows world. I was always interested in pulling things apart and putting it back together and that is what got me in Computer repairs. Back then there was the Commodore, Amiga, Apple II and so on.

there is no denying that LINUX is more stable WINDOWS and is probably more stable than any other operating system out there.  As far as user experience in general is concerned, that is where it lacks as well is misunderstood. by this I mean, because of the many misconceptions around using LINUX, a lot of potential users run towards Windows and a lot developers cater then to that platform.

I mean let's be honest. All of us wants to make money as a developer whether you create software or games for what platform you cater to. It's perhaps the most successful way to make money, short of getting involved in religion :) , but that's another thing altogether.

However, I think that it's quite dangerous to keep flooding the Windows market. Eventually it is going crash and burn and users are going to look for another platform. Which is where developing for LINUX can be the next money making platform as well as rewarding.

I have two computers on my network, one with Windows 7 and the other has LINUX. When I test a project, I have found that the one running on LINUX perform much better in terms of speed, execution and the graphics run smoother. Of course I am using ENIGMA on both computers. I want to deliver this type of experience to the users of my game/software. that is not to say that all Windows games don't give you that, but I watched videos where this type of thing do happen a lot.

Lastly I want to just say, and this just my opinion by the way, game development is hard, very hard. It's like its within a box where there's a set of rules and directions that is for you to follow. let's take two games for example, Candy Crush and Bejeweled. Both have the same concept, match-3 or more objects, yet one is more successful. Now let's look at another example.... Flappy Bird. Compared to the two previous ones that had many lines of code, Flappy bird had less than 50 and the owner became a millionaire.

The point to this is the author didn't follow the norm with a big story plot, lot of levels and so forth, he achieved all of that with one level and that was it. WE need to think/do things out of box and not be too constrained within the norm.

Just my opinion.





208
Off-Topic / Developing Games
« on: September 18, 2017, 09:27:14 am »
I'm interested in knowing which platform developers such as yourself cater to. Is it Windows, Linux, IOS or probably something else?

209
Third Party / DnD to GML utility
« on: September 18, 2017, 09:13:28 am »
Here's a little utility I've been using that converts Drag and Drop actions to GML. It's been invaluable to me in learning GML so I thought I would just share with any newbies out there.

Upon writing this , I did a search on DND to GML utilies and I came many others. One can also do a search and try them out for oneself but I still prefer this one as you can perform an actually code segment and it will convert it for you, right there and then. Check it out.

here's the link http://www.stuffbydavid.com/dnd-to-gml


 

210
looks like you forgot to write an extra } at the end of your statement

revised version:
 
if(sprite_index==sprite_StellaSouthwest) {//this is orphaned as it stands
                with(other){
                        x=object_Bee.x-15;
                        y=object_Bee.y+27;
                }

} <=this should be at the end....thus the error


the following should simplify matters a little bit

if(sprite_index==sprite_StellaSouthwest)
{
   

     with(other)
         {
           x=object_Bee.x-15;
           y=object_Bee.y+27;
         }

}

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 »