
ok
Ive basically got a box. it rotates 90 degreess to the left when you tell it to.
I have an sphere which in relation to the center of the box (co ordinate 0, is offset by i dont know how much. I basically want it so that when the box rotates, the sphere rotates with it.
for t=1 to 45
yrotate object 1,wrapvalue(object angle y(1)+2)
next t
rotate object t,0,0,0
this makes (or gives the impression) of the box rotateing.
My game makes the box rotate in any direction like a rubix cube, so once the box roatates it is reset to 0,0,0 (which you dont notice). The box rotates by 90 degrees each time. (moves 2 degrees, 45 times)
i thought of this code to make the object move round with it.
point object t,0,object position y(t),0
yrotate object t,-90 : move object t,200/90 : yrotate object t,90
this code is put in the for next loop shown above. It doesnt work though

and i dont know y. I fany one has any better code please let me know. or if anyone can fix this code let me know. Please note that the movement of the box and the objects in it is the same. but it should be kept independant. i.e. dont say "make the box collision proof and make it force the objects round in it with it" that would be a nice idea but causes controll problems later

if you were able to understand this post then you have the mind of a genuius. If you are able to come up with the answer you should be the pri minister of england or presedent of america...or...wateva
>>TerraByte. Putting the Byte back into Terragramming<< If my post has less than 20 typos then it wasnt me who wrote it!
http://darkdayssoftware.250free.com/Logo394.GIF[/img]