how to make the object type a object controller and a dx player

hi, new user here

can anyone tell me a way on how to make an object type an object controller and a dx player?

I selected object controller for the object type and when I click add for additional, the object type became dx player. This doesn't seem to happen when I add any other additionals. like scriptable chart, or performance meter 2....

I want to make a object that when I click on it, opens a second object and play a song, and when i click on the second object, it closes and the song stops.

if anyone is willing to write a script for this or tell me a way to put object controller and dx player on the same object I would appreciate it.

9,532 views 2 replies
Reply #1 Top

Not sure I understand. Can you explain a bit further?

Reply #2 Top

Never noticed this, but yes, you can't have a different object type on the same object as a DXPlayer plugin. To have a secondary function on click use the OnLButtonUp function, similar to this:

Code: vbscript
  1. 'Called when L-click is released
  2. Function Object_OnLButtonUp(x, y, dragged)
  3.  If dragged Then Exit Function
  4.  DesktopX.Object("secondobject").visible = True 
  5. End Function

 

Lots of DX tutorials here: LINK

+1 Loading…