PROBLEM WITH BOUNCING (AIR HOCKEY)
te4o
Member, PRO Posts: 10
Hi all,
I've a problem with my first GS project and i hope that someone can help me
I'm creating a simple air hockey and the bouncing of the buck it's ok.
Now, the problem is that if i move the player speedily against the puck, it doesn't work good, the puck stuck against the player and sometimes the player passes over the puck.
I'd like to have a phisical that lokes real, that when i move quickly the player against the puck, it moves in direction and speed imprinted.
(p.s. sorry if my english is not perfect)
Thanks
I've a problem with my first GS project and i hope that someone can help me
I'm creating a simple air hockey and the bouncing of the buck it's ok.
Now, the problem is that if i move the player speedily against the puck, it doesn't work good, the puck stuck against the player and sometimes the player passes over the puck.
I'd like to have a phisical that lokes real, that when i move quickly the player against the puck, it moves in direction and speed imprinted.
(p.s. sorry if my english is not perfect)
Thanks
Comments
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I try it, but it's the same. Before i had set 5000 the player and 25 the puck.
My rules.. Uhm, just.. When the puck collide against the player i used a change attribute behavior in this way: change self.motion.linearvelocity.x to self.motion.linearvelocity.x+(self.position.x-game.Xplayer)
and the same for y.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Jamie_c...I would like to know how the the ball is able to do all the bouncing around with just the physics engine without the math I thought it would use. I use the brick breaker template and it works on there but but I tried to recreate it, it just keeps going in the same direction
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
is there come kind of secret to collide or something....13 hours into this and I should have most of my levels done by now and im still dealing with this...im sorry I went to bed last night hoping to see a solution but no one replied I thought this would be a simple solution but either no one knows or no ones cares..either way it doesn't make me feel like I made a good decision buying game salad.....
As for how the GS physics engine actually works in creating it's angles of bounce, etc. I have no idea.
All you should have to do is add the collide behaviors and tweek your values and usually it works pretty well. I wonder if there is something else going on/wrong with your project that is messing things up for you?
If you're interested in sharing your project I can take a look at it and see if I see anything...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
okay nevermind I found your email I just sent it
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
this is a video of my problem.
the puck bounces well against the border, the CPU player (red) and also against the green player, but if i move speedily the green player against the puck.............
0.12s : the green player passes over the puck
0.15s and 0.39 : the problem that i tried to explain to you
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
How can i make it work well?