Thanks for replyig oliver...I'm using 3DGS A6 Pro v6.22.I reverted from 6.31 as I've started making a game in 6.22...so,could someone please post a code with the necessary changes so that it would work in 6.22 ?

Thanks