Hammer force .. Help!
adlaim
Member Posts: 68
Hi ,
My English is bad ..
The image explain you what I mean ..
How to make this in GS ?
http://www.im31.gulfup.com/yPbbp.jpg
My English is bad ..
The image explain you what I mean ..
How to make this in GS ?
http://www.im31.gulfup.com/yPbbp.jpg
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Create game.attribute(index) called HammerSpeed
In the hammer actor do like this
-Constrain game.HammerSpeed to magnitude(self.motion.linearvelocity.x,self.motion.linearvelocity.y
In the podium actor do like this
-Create a a self.attribute(index) and call it HammerImpactSpeed
-Create a rule that says if actor overlaps or collide with actor podium
change attribute self.HammerImpactSpeed to game.HammerSpeed
Hope it helped
//Fajlajp
https://www.dropbox.com/s/rerh911b8sdx5f7/PowerMeters.zip
//Fajlajp
but i want to make hammer follow my touch on the screen ..
and calculate speed when touch the podium ..
Thanks again
-When touch is pressed
Constrain attribute self.position.x to mouse.position.x
Constrain attribute self.position.y to mouse.position.y
And it calculate the speed when it touch the podium... It´s just that the hammer have not a regular collision shape.