Pages: 1
Author Topic: How do you do collision in Enigma?  (53,116 Views)
Offline (Unknown gender) null1024

Member
Joined: Aug 2009
Posts: 4
View profile
Posted on: August 09, 2009, 09:48:55 PM
So, yeah. LGM won't let me select an object for the collision event and I can't even try making a collision system with point_distance(), because I can't get the coords for the other object [point_distance(obj_player.x,obj_player.y) in the bullets fails miserably in compile].

So how do I do it?
Offline (Unknown gender) qc.zackf

Member
Joined: Aug 2009
Posts: 41
View profile
Reply #1 Posted on: August 10, 2009, 01:15:44 AM
LGM is giving me the same problem, but first you should check the 'Development' page to see if collision has been completely implemented.
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #2 Posted on: August 10, 2009, 02:47:29 AM
This sounds like a question that should be asked on the LGM forums. Of course, I'm guessing neither of you has an account there, and just yesterday I disabled registration for a little while so we can get some new forum mechanisms in place.

First, I need to know what revision you guys are using. This appears on the loading screen and in the About box, supposing you're not using a horribly outdated version. For example:
LateralGM
v1.6.0 beta (r###)
where ### is your revision number.

Second, you will need step by step instructions on how to reproduce this problem. For example, I took the following steps in beta2, r370, and was unable to reproduce your issue:
1) Open LGM, blank/new game
2) Right click on the Objects folder, Create Resource
3) On the bottom-middle of the object's window, click the little icon that looks like a calendar. This will bring up the "Event Selector"
4) In the Event Selector, left-click on the "Collision" event
5) On the right pane, it asks for "Collision Object", with a dropdown. Click the Dropdown, and you will see two options:
<choose an object>
obj_0
6) Select the latter option (obj_0)
7) Most Important Step!!! Right Click or Double Left Click on the Collision event in the Event selector's left pane (the one we single left clicked on before). This finally adds the event to the object.
The following steps are extraneous:
8) Close/hide/move the Events Selector away so that the Object editor is visible
9) Observe that obj_0 now has a collision event, denoted with the Collision Red Arrows Icon, and labeled "obj_0". It should also be selected.
Offline (Unknown gender) null1024

Member
Joined: Aug 2009
Posts: 4
View profile
Reply #3 Posted on: August 11, 2009, 10:18:51 PM
Using 1.6.0, the one that came with Enigma itself. In a new game, I was able to select an object to create a collision event, however in this file:
http://www.4shared.com/file/124441354/db059a8b/OOnm.html
I was not. When I select the Collision event, only <choose an object> is available to select, rather than the 4 objects available.

[edit]
From your description, the version that came with Enigma is outdated, the event selector item is an alarm clock.
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #4 Posted on: August 12, 2009, 02:13:05 PM
I asked for the revision, not the version.
I'm unable to reproduce with the latest version available on our website, so I believe that this is a bug that we already fixed. In fact, I recall similar problems, and I remember implementing a solution, so I'd assume it's the same bug as that. Enigma just hasn't caught up with including that version yet.

Some options:
1) You can wait until the next Enigma release comes out. With a bit of luck, Joshy will have included a more recent LGM version.
2) You can try downloading LGM from the LateralGM website and replacing your outdated version with that (LGM has no issue with being renamed - but Enigma expects a certain filename, and likewise, LGM expects a certain filename for Enigma).
This may not work, due to changes in the format between beta1 and beta2.
3) You can get things from the repositories. Especially the LGM-Enigma plugin, which has 3 revisions so far, the oldest being probably the one you're using. The next revision is compatibility for LGM1.6.0b2. The latest revision is compatibility for the repository LGM.
Offline (Unknown gender) RetroX

Master of all things Linux
Contributor
Joined: Apr 2008
Posts: 1,055
View profile
Reply #5 Posted on: August 12, 2009, 03:36:54 PM
The collisions haven't been finished yet, anyways.  Speaking of which, has Ludamad finished Colligma yet?
Offline (Unknown gender) null1024

Member
Joined: Aug 2009
Posts: 4
View profile
Reply #6 Posted on: August 12, 2009, 08:28:41 PM
The latest LGM fixed it. Sweet.
Also, the LGM that came with Enigma didn't *have* a revision number.
And where do I find the new LGM-Engima plugin? Dropping in the new LGM and renaming it to the same as the old one gets stuck when trying to compile...
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #7 Posted on: August 12, 2009, 08:31:46 PM
On the Enigma SVN. You'll have to compile it yourself, or else wait for me to get around to compiling it (although I'm having computer trouble and might not be able to for some time) - or someone else can compile it for you.

Alternatively, you could use the new LGM, save it, and then open it with the old LGM. But as has been mentioned above, Enigma doesn't support collisions yet, so it won't do you a lick of good anyways.
Offline (Unknown gender) qc.zackf

Member
Joined: Aug 2009
Posts: 41
View profile
Reply #8 Posted on: August 13, 2009, 12:08:44 AM
I didn't realize that you had to recompile the enigma plugin to use in the newer LGM and I've been sitting for two days trying to figure out why compiling is so slow it seemed stopped.
Offline (Unknown gender) notachair

Definitely not a chair
Contributor
Joined: Feb 2008
Posts: 299
View profile
Reply #9 Posted on: August 13, 2009, 08:20:26 AM
Quote from: RetroX on August 12, 2009, 03:36:54 PM
The collisions haven't been finished yet, anyways.  Speaking of which, has Ludamad finished Colligma yet?
If I recall correctly, Ludamad's just waiting for something stable.
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #10 Posted on: August 13, 2009, 01:43:19 PM
I don't understand why it freezes. I'm looking into it. It should at least report some kind of error.
Pages: 1