Jump to content

drarem

Members
  • Posts

    234
  • Joined

  • Last visited

drarem's Achievements

Newbie

Newbie (1/14)

16

Reputation

  1. Dropping the range made the difference, thank you.
  2. tried adding listener back, am using another mono sample. This is in the start function, but should it get moved to where the entity is instead of at 0,0,0 ? Thanks. --Create a listener local listener = Listener:Create() listener:SetPosition(0,0,0)
  3. I tried creating a local listener for the self releasing object in the Start() function as in the API example showed, didn't seem to help
  4. I set up the source sound looking at the api, i know my audio is a mono (1 track), but when it plays, it doesn't sound like it's in the distance on the more distant ones. Am i missing something else? Thanks. Start: self.sound={} self.sound.glassbreak=Sound:Load(self.glassbreak) --Create a self.source self.source = Source:Create() self.source:SetSound(self.sound.glassbreak) self.sound.glassbreak:Release() self.source:SetLoopMode(false) self.source:SetRange(60.0) end -- play this audio once when the glass breaks self.source:SetPosition(self.entity:GetPosition()) self.source:Play() self.entity:SetMass(0) self.entity:SetCollisionType(0) self.entity:Release()
  5. Ok I found this, but the documenation I think lies if i read it right.. loop=false doesn't let it keep playing. once the entity is released, the sound doesn't get a chance to play. It is killed with the entity. self.entity:EmitSound(self.sound.glassbreak, 40, 1, 1, false)
  6. Ok, only mono sounds can be played using 3d spatialization. are there any examples for it, or is it automatic as long as the sound is mono format?
  7. I found this, it works well. http://www.leadwerks.com/werkspace/topic/13485-font-sizes/page__hl__resolution
  8. for multiple resolutions, is there an easy way to handle HUD text and output, or does it require calculations for each mode possible? Thanks.
  9. Many thanks, after thinking about the 'fx and fy' variables and some testing, I realized those were a string value instead of numeric. I converted them to a number using tonumber(fx) and tonumber(fy), and it works as expected.
  10. It's odd, that's what I have but when I access it in another function (after it has been initialized and called), then crashes with a 'nil' like it has gone out of scope. BUT if I hardcode the numbers, it works. myarray[fx][fy] = 0 -- nil error myarray[3][1] = 0 -- works
  11. After I've initialized the array using a function, I can do this: globals.myarray[1][1] = 0 and it works, but if I do this: local fx=globals.reti local fy=globals.retj System:Print(...) .. fx, fy are now equal to 1,1 This won't work: globals.myarray[fx][fy] = 0 I get this error: 253 : attempt to index a nil value What is going on? thanks
  12. drarem

    white out

    thanks, the drawrect works great
  13. drarem

    white out

    What's an easy way to get the entire screen to fade to white or fade to black? Thanks.
  14. I used a different simple model as a trigger, it's working now.
  15. The main thing is, my trigger isn't triggering but it's a child of the main object.
×
×
  • Create New...