Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
General ENIGMA / Re: Vector graphics? Bones on sprites?
« Last post by Josh @ Dreamland on December 18, 2019, 09:13:14 pm »
We're mostly focused on the build system and IDE right now; it's somewhat refreshing to see questions about the engine. Unfortunately, there's no great canned solution to your questions.

  • ENIGMA is a raster-based engine; you can draw textured polygons, but we don't support loading vector graphics by default. You could integrate with, eg, NanoVG easily enough, but until a hardware-accelerated SVG rendering library is popularized, I don't expect us to adopt one natively.
  • You can do that relatively easily using sprite origins and some trig (or the convenience lengthdir_x/y functions), but we don't currently have a bone editor.
  • I'm actually not sure what you mean by the origin of a sprite sheet. You can change the origin of an entire sprite, yes. Note that this is a global change that will affect every occurrence of that sprite.
  • You could write a shader that used the pixel value as a color index, but we don't natively support changing color palettes. This was one of my wishlist items, though. If you look around, you can probably find a shader that already does this.
General ENIGMA / Vector graphics? Bones on sprites?
« Last post by mistermano on December 18, 2019, 06:05:49 pm »
I did a quick forum search and the most relevant answer I found was a topic from 2014. So, I'd like someone who knows better about the engine to kindly answer me:
  • Is it possible to use vector graphics, somewhat similar to Flash?
  • Is it possible to add bones, joints or something similar to sprites?
  • Is it possible to change the origin of a sprite sheet to a particular frame while the game is running? (I'm almost certain the answer to this one is yes, but I'd like confirmation)
  • Is it possible to change a palette color? Say, my sprite is saved with a 16 color palette, after it is loaded, can I change the color value of one of those 16 colors?

Why I'm asking: the project I have in mind is basically the player controlling a robot, running around gathering new pieces like arms, legs and torsos, which are visually different. Zooming in and out to show the same image rather than having a separate set of images for close ups would be much better for me
Works in Progress / DSU - new underwater game
« Last post by hpg678 on October 03, 2019, 06:38:26 am »
Deep Sea Underwater is the newest full game. You command a submarine underwater.....your goal is to avoid as many obstacles in the form of stalagmites, stalactites and mines in the sea. Clicking the left mouse button briefly keeps your sub afloat, releasing it makes it sink. Along the way treasure chest will pop up. Collect them for a big score, but that feat is not as easy as you may think.

At the moment there is a Linux version. There will be a Windows and Mobile version later. I am also thinking about doing a Mac version but that is another matter altogether.

Tips, Tutorials, Examples / Re: Mithe.....a Flappy Bird clone or underwater game
« Last post by hpg678 on October 03, 2019, 05:08:43 am »
Seems the process will be more troublesome than its worth, so I decided to do two seperate games after all.

we'd need more sprites for fish, bubbles and obstacles. Adjustments to the code to make everything work together was more troublesome and irritating where my goal for this, well any tutorial is to be as simple and painless as possible.

As far the Underwater game is concerned, it is soon completed. Sound effects have been added, everything else is working as it should. the only thing to do now is the Instructions screen and Credits screen.

So be on the lookout for that game in a new topic.

untill then, be cool and awesome using ENIGMA.  (Y) (Y) :cool:

Tips, Tutorials, Examples / Mithe.....a Flappy Bird clone or underwater game
« Last post by hpg678 on September 26, 2019, 05:10:31 pm »
I am doing a two part series on converting one game type to another. For this i am using a Flappy bird clone i created today and will convert it into an underwater game. you can check the Youtube video here for part one. if you are interested in doing  it yourself, download the source at the EDC or Games section. With a few additions like a Start Menu, some effects and additional graphics, one can make a full game of it.

Converting the game should be too difficult since the type of underwater game uses the same type of mechanics. Stay tuned for an update.

 (Y) (Y)

Tips, Tutorials, Examples / ENIGMA on USB drive using UUI
« Last post by hpg678 on September 01, 2019, 08:59:45 am »
For those who may want to try ENIGMA or LINUX, but don't want to use a VM(Virtual Machine), you can do so by installing it on a USB drive using this great software I came across named Universal USB Installer. I recommend using a 8GB or more one as i've recently tested one such drive. A 128Gb one is ideal for updates, creating your projects and copying resources over for use.

To create your USB, I refer you to this article here, where it instructs you on how to create such a device. Linux is not the only OS you can use, however. You can choose, Fedora, Arch, CentOS, Windows, Android, Cloning/REcovery Tools, Antivirus Rescue Tools, Security/Penetrating Tools and many others.

The one I created was Xubuntu, as I was using a 8Gb Sandisk USB drive. The one feature that sets it apart from others I've used before, like Etcher, Rufus etc, is the 'Persistence' setting, where you set how much of the drive space to use for storage. On mine, I created a 3Gb one, which after installing ENIGMA has 690MB free.

The instructions are simple. Choose what distro you want to install. Don't have the ISO? No problem. It directs you to the download link. Select the USB drive. You can format it as NTFS or Fat32. I recommend using Fat32 as it is more generic. I've had experiences where some computers Bios have trouble reading NTFS formatted USB drives.

Depending on your USB size it will take some time, but it is definitely worth the effort. After your USB is configured and gone through the process, it just a matter of plugging it into the computer USB port and starting up the computer.
When the boot menu appears, choose the option to try the OS.
When the desktop is up, make sure the network is working, open up the browser and go to ENIGMA's website.
Depending on the type of OS, you've chosen follow those instructions. If you choose a LINUX type distribution and is new to LINUX, dont panic. Its very easy to install ENIGMA.

LINUX users
  • Open the app named Terminal. It is very similar to Windows command prompt and will normally be in the Accessories submenu.
  • Next open up your browser and go to the website. (Some installations would have an icon on your desktop. if there is none, go to the Internet sub-menu. Note: the link carries you directly to the Linux installation page)
  • Select and copy all the text in the code.
  • Next we are going to paste the text into a script. Open the File Manager by clicking on the Computer icon on the desktop. If there isn't one, then you should find it in the Accessories sub-menu. With the Home Folder selected, go the right side of the panel, right-click and choose Create New....Empty File. Give it the name ''. Double click on that file and paste the contents you copied.
  • Next we have to make the file executable. Right-click on the file, choose Properties. Go to the Permissions tab and select 'make this file executable'.
  • With the Terminal window, you should be able to drag the file over into the Terminal window. If not then copy the file and paste it into the Terminal. You should see the path and name of the file at the prompt.
  • All that's left now is hit Enter in the Terminal Window. If all goes well, you should see a new folder in the File Manager named enigma-dev.
  • In that folder, double-click on the file named "'
  • in the Terminal window, type "./"
Hope you've found this useful! Any other questions, check me out on the Discord channel or ask away here in the forums.

 (Y) (Y)

Issues Help Desk / Re: Error Unknown function or script `audio_play_sound'
« Last post by ojars on August 29, 2019, 10:55:16 am »
Thank you, this works.
Issues Help Desk / Re: Error Unknown function or script `audio_play_sound'
« Last post by time-killer-games on August 29, 2019, 08:27:19 am »
You need to use OpenAL instead of DirectSound for this.

Install instructions can be found there, which will fix the error.
Issues Help Desk / Error Unknown function or script `audio_play_sound'
« Last post by ojars on August 27, 2019, 03:31:21 pm »
Hi all, I got an error Unknown function or script `audio_play_sound' in my game. After that I created new game with only create event and that function and another .wav file and got the same error.
Event[0, 0] Check `o_game::create...Syntax error in object `o_game', Create event:0:
Line 1, position 18 (absolute 17): Unknown function or script `audio_play_sound'

In the Game settings Platform is Windows, Graphics was set to Direct3D 11.0 and Audio to DirectSound. After the error I switched Gaphics to OpenGL 3.3 and Audio to OpenAl, and got another error
D:/Programmas/MSYS2/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.4.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lmodplug
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:139: compile_game] Error 1
make[1]: Leaving directory '/d/Programmas/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
make: *** [Makefile:20: Game] Error 2
Where is my mistake?
Issues Help Desk / Re: Compile enigma on ClockworkPI GameShell
« Last post by hpg678 on August 25, 2019, 05:11:49 pm »
Congratulations! That's really wonderful to hear.
Pages: « 1 2 3 4 5 6 7 8 9 10 »