×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

help with volume, controled by the sprites LocV

help with volume, controled by the sprites LocV

help with volume, controled by the sprites LocV

(OP)
hey fellow director peeps......
this is my first tyime on this forum......
i am trying to attach sounds to sprites which i'm ok with but i want to control the volume attached by its possition on the stage....
i kinda want this experiment to be a way to compose sound.....
hopefully i will be abble to place several different sprites on the stage..... after working out the volume i may try to experiment with either the tempo or pitch of the sound attached to the LocH......

any help or further ideas would be a great help.....
many thanx to those who read and reply......

regards
00lewis (license to thrill)

RE: help with volume, controled by the sprites LocV

sound(1).volume = sprite(1).locV
--
This will set the volume of sound channel 1 to the value of the locV of Sprite 1. In reality you'll need to manipulate the locV value to suit to the volume value (for example volume value is between 0 - 255 while locV can be any number.)

Kenneth Kawamoto
www.materiaprima.co.uk

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close