Little animated waves
by bentgarney · in Torque Game Builder · 03/19/2005 (1:51 am) · 16 replies
#2
03/19/2005 (6:07 am)
I'm doing water type animation with particles right now. Maybe make the waves a particle system?
#3
Doesn't fxSceneGraph2D::onUpdateScene() notify you every frame? That is, doesn't that address your problem of, "...you don't check them every loop then reposition". I realize that we do not want to use this as our primary means of movement, but I just want to make sure I correctly understand the behavior of onUpdateScene().
03/19/2005 (9:58 am)
It sounds like you have a solution to your problem, but perhaps you can educate me a bit anyway.Doesn't fxSceneGraph2D::onUpdateScene() notify you every frame? That is, doesn't that address your problem of, "...you don't check them every loop then reposition". I realize that we do not want to use this as our primary means of movement, but I just want to make sure I correctly understand the behavior of onUpdateScene().
#4
I just added "setPositionX()", "setPositionY()", "setSizeX()" and "setSizeY()" to the TODO list.
- Melv.
03/19/2005 (11:52 am)
Good idea Rob.I just added "setPositionX()", "setPositionY()", "setSizeX()" and "setSizeY()" to the TODO list.
- Melv.
#5
Why not use an fxScroller, attach it to the corner of a rotating fxSceneObject2D. This way you get an object that is designed to scroll/wrap and you can creating interesting movements.
This is a similar effect we use in the grav demo to make the character "Flegg" float around in an interesting manner.
You'll always find that as the effects get more specialised, you'll need the services of a C++ programmer. There's a good chance though that some of this stuff though will be taken care of by the ability to have animatable properties and/or object paths.
Just an idea, good luck. :)
- Melv.
03/19/2005 (12:02 pm)
Rob,Why not use an fxScroller, attach it to the corner of a rotating fxSceneObject2D. This way you get an object that is designed to scroll/wrap and you can creating interesting movements.
This is a similar effect we use in the grav demo to make the character "Flegg" float around in an interesting manner.
You'll always find that as the effects get more specialised, you'll need the services of a C++ programmer. There's a good chance though that some of this stuff though will be taken care of by the ability to have animatable properties and/or object paths.
Just an idea, good luck. :)
- Melv.
#6
Just a little request. :)
03/19/2005 (12:44 pm)
It would also be nice to have getPositionX() and getPositionY(). I have a character that only jumps up and down but I only want him to jump when he's near the ground. I figured out the getword stuff, but getPositionX and getPositionY would be cool.Just a little request. :)
#7
Added "getPositionX()", "getPositionY()", "getSizeX()" and "getSizeY()" to the above request.
- Melv.
03/20/2005 (3:05 am)
Good point Matt.Added "getPositionX()", "getPositionY()", "getSizeX()" and "getSizeY()" to the above request.
- Melv.
#8
Added the following this morning...
setPositionX()
setPositionY()
setSizeX()
setSizeY()
setWidth() *same as setSizeX.
setHeight() *same as setSizeY.
getPositionX()
getPositionY()
getSizeX()
getSizeY()
getWidth() *same as getSizeX.
getHeight() *same as getSizeY.
Expect these in the next update.
- Melv.
03/20/2005 (5:01 am)
FYIAdded the following this morning...
setPositionX()
setPositionY()
setSizeX()
setSizeY()
setWidth() *same as setSizeX.
setHeight() *same as setSizeY.
getPositionX()
getPositionY()
getSizeX()
getSizeY()
getWidth() *same as getSizeX.
getHeight() *same as getSizeY.
Expect these in the next update.
- Melv.
#9
- Melv.
03/21/2005 (2:43 am)
Well, that's a hard one to answer because I don't know the rate at which you can eat cream scones. If I had that relevant information then it might have been a different story. ;)- Melv.
#11
Well in that case, it looks like you might have to eat approximately 20 cream scones or less. Better get eating, I'll be watching. I'll know if you're faking!
- Melv.
03/21/2005 (7:38 am)
:)Well in that case, it looks like you might have to eat approximately 20 cream scones or less. Better get eating, I'll be watching. I'll know if you're faking!
- Melv.
#12
Just for that, I scarfed down 20 this morning. Now where's that update?! :)
Can't wait for it. You're a crazy code monkey, y'know that? :-p
03/21/2005 (7:43 am)
*Burp*Just for that, I scarfed down 20 this morning. Now where's that update?! :)
Can't wait for it. You're a crazy code monkey, y'know that? :-p
#15
Melv, how close are we to reaching the number required?
:)
03/24/2005 (10:42 pm)
So... how many ice cream scones have we eaten?Melv, how close are we to reaching the number required?
:)
#16
03/25/2005 (8:00 pm)
Hum this might come in handy for star castle (arcade classic) rotating castle walls.
Torque Owner Teck Lee Tan