Pages: 1
  Print  
Author Topic: How do you do collision in Enigma?  (Read 2976 times)
Offline (Unknown gender) null1024
Posted on: August 09, 2009, 04:48:55 PM
Member
Joined: Aug 2009
Posts: 4

View Profile Email
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?
Logged
Offline (Male) qc.zackf
Reply #1 Posted on: August 09, 2009, 08:15:44 PM

Member
Location: Winter Haven, FL - USA
Joined: Aug 2009
Posts: 41

View Profile Email
LGM is giving me the same problem, but first you should check the 'Development' page to see if collision has been completely implemented.
Logged
Only ask questions you know the answer to...
Offline (Female) IsmAvatar
Reply #2 Posted on: August 09, 2009, 09:47:29 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
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.
Logged
Offline (Unknown gender) null1024
Reply #3 Posted on: August 11, 2009, 05:18:51 PM
Member
Joined: Aug 2009
Posts: 4

View Profile Email
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.
« Last Edit: August 11, 2009, 05:28:15 PM by null1024 » Logged
Offline (Female) IsmAvatar
Reply #4 Posted on: August 12, 2009, 09:13:05 AM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
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.
Logged
Offline (Male) RetroX
Reply #5 Posted on: August 12, 2009, 10:36:54 AM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
The collisions haven't been finished yet, anyways.  Speaking of which, has Ludamad finished Colligma yet?
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) null1024
Reply #6 Posted on: August 12, 2009, 03:28:41 PM
Member
Joined: Aug 2009
Posts: 4

View Profile Email
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...
Logged
Offline (Female) IsmAvatar
Reply #7 Posted on: August 12, 2009, 03:31:46 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
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.
Logged
Offline (Male) qc.zackf
Reply #8 Posted on: August 12, 2009, 07:08:44 PM

Member
Location: Winter Haven, FL - USA
Joined: Aug 2009
Posts: 41

View Profile Email
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.
Logged
Only ask questions you know the answer to...
Offline (Male) notachair
Reply #9 Posted on: August 13, 2009, 03:20:26 AM

Definitely not a chair
Contributor
Joined: Feb 2008
Posts: 299

View Profile
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.
Logged
Offline (Female) IsmAvatar
Reply #10 Posted on: August 13, 2009, 08:43:19 AM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
I don't understand why it freezes. I'm looking into it. It should at least report some kind of error.
Logged
Pages: 1
  Print