GameMonkey Script

GameMonkey Script Forums
It is currently Thu Jan 24, 2019 5:06 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: gmBind question
PostPosted: Sun Aug 27, 2006 6:50 am 
Offline

Joined: Thu Jul 06, 2006 3:29 am
Posts: 14
Location: California
I have a project I am working on(gmCodeOptimizer is just a side-project for now) which requires me to bind entity classes. to do this, I have chosen to use gmBind. However, the only example of gmBind usage I could find is the 'Bomb' example. this example, or my implementation of it seems to have one major drawback, the only operators that are implamented are the 'set' and 'get'. This means I must use the following:
Code:
e = Entity(); //this is what I use to create an entity
e.x = 32;     //and this is the only way I can directly update e's variables
e.x +=2;      //this will set the variable back to zero

what I want to do is be able to use '+=', '-=', '*=', and '/=' to change my variable. How would I go about implementing this using gmBind?
if you'd like, I could also upload the code so you have a better idea of how I am doing this(although it's pretty much just a changed version of the 'Bomb' code.

thanks,
-Wynter Woods (aka zerotri)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group