Bouncing Ball Tutorial for GameMaker Studio 2

  Рет қаралды 21,198

almightyzentaco

almightyzentaco

Күн бұрын

Пікірлер: 64
@robotsturm6488
@robotsturm6488 10 ай бұрын
I love you, from clickteam to game maker
@almightyzentaco
@almightyzentaco 10 ай бұрын
Thank you. I hope you are fulfilling all of your game dev dreams
@fahren1884
@fahren1884 5 жыл бұрын
Shaun is a great tutor, still great that someone like you does an updated version of it, thank you!
@Sagitta62
@Sagitta62 6 жыл бұрын
Very useful tutorial 👍 what I did I use the (copy/paste) code segment and change the object wall to object ball now the balls bounce off the walls and each other // collision if(place_meeting(x+xspd, y, oWall)) { while() … xspd *= -bouncedecay; } … (other part of the code) but what I having problem with is to make that code segment into a collision script so I can reuse it
@armyofonev8
@armyofonev8 5 жыл бұрын
you sir have earned a star of approval
@TechBoxNorth
@TechBoxNorth 6 жыл бұрын
Nice video! I had completely forgotten how fast performance game made with GMS2 have compared to games made with the other two engines I have (Construct 3 and CF2.5).
@MarcadetFPS
@MarcadetFPS 11 ай бұрын
So well explained and clear, THANK YOU!
@elirichardson8251
@elirichardson8251 10 ай бұрын
Awesome video, expertly presented. Thank you!
@fierorecensione5828
@fierorecensione5828 7 ай бұрын
Hello there very nice video! Thank you a lot! Is there any chance so create a logic where the ball is moved by the kick of objPlayer? Thank you!
@DoubleDoubleD
@DoubleDoubleD 6 жыл бұрын
Wow your channel seems interesting. Appreciate your efforts on the Tuts and keep it up !
@emmanuelroux3845
@emmanuelroux3845 4 жыл бұрын
Tell me if I'm wrong, but in reality the bounce never stops. Indeed, yspd will tend towards 0 without ever reaching it. For example, if yspd = 0.01, yspd*0.8 = 0.008 and so on. So, in my code, I had to add an if condition to set yspd to 0. What do you think about this?
@almightyzentaco
@almightyzentaco 4 жыл бұрын
Yspd will always change, yes. But values below 1 pixel of movement dont translate visually whatsoever.
@emmanuelroux3845
@emmanuelroux3845 4 жыл бұрын
Maybe because I work in low resolution (240x320), the movement remains visible! I can see a slight vibration.
@rogerosullivan9881
@rogerosullivan9881 4 жыл бұрын
Code you paste the code here please. I'm having the same issue.
@SwitchedOn
@SwitchedOn 4 жыл бұрын
Have you got that bit of code please Emmanuel as I've having that gravity jiggle too! Thanks.
@aaronmaldonado6562
@aaronmaldonado6562 Жыл бұрын
Creation Event: xspd = 0; yspd = 0; grav = 0.6; bouncedecay = 0.66; rot_angle = random(360); Step Event: if place_meeting(x + xspd, y, obj_ball) xspd *= -bouncedecay; if place_meeting(x, y + yspd, obj_ball) yspd *= -bouncedecay; if place_meeting(x + xspd, y, obj_wall) { while not place_meeting(x + sign(xspd), y, obj_wall) { x += sign(xspd); } //bounce xspd *= -bouncedecay; } else { x += xspd; } if place_meeting(x, y + yspd, obj_wall) { while not place_meeting(x, y + sign(yspd), obj_wall) { y += sign(yspd); } yspd *= -bouncedecay; } else { y += yspd; } if mouse_check_button(mb_left) { // pull effect var dir_x = (mouse_x - x) / 100; var dir_y = (mouse_y - y) / 100; xspd += dir_x; yspd += dir_y; } if place_meeting(x, y + 1, obj_wall) { xspd *= 0.99; } rot_angle -= (xspd / 2); yspd += grav; Draw Event: draw_sprite_ext(sprite_index, 0, x, y, image_xscale, image_yscale, rot_angle, c_white, 1);
@xdsloth5199
@xdsloth5199 Жыл бұрын
My bloody hell mate, you are a legend!
@almightyzentaco
@almightyzentaco Жыл бұрын
I like to think so.
@TaughtSimply
@TaughtSimply 3 жыл бұрын
This is a fantastic tutorial, I was hoping you could update it so the balls will bounce off each other?
@bromaster6643
@bromaster6643 6 жыл бұрын
Can you do more Psuedo-3D for Clickteam Fusion?
@tototation
@tototation 5 жыл бұрын
Does it work with slopes ?
@EnderPlayed-lp9ko
@EnderPlayed-lp9ko 3 жыл бұрын
okay nice but how to let it bounce on a diagonal wall?
@LoboTCG
@LoboTCG 6 жыл бұрын
Another great Video Zen! You are the #1 resource for Click Team fusion tutorials! I'm currently working on a platformer, and I'm trying to do Mega Man type scrolling, where the camera is locked during boss fights, but smooth during platforming. But I can't quite get it to go smoothly. Would you happen to have any tips or pointers? I'm using a variation of your Smooth Scrolling Tutorial, but changing the target with a variable. Thanks for all that you do.
@SgT0dessa
@SgT0dessa 5 жыл бұрын
Is there any way to stop the shaking the object does once it comes to a rest on the ground? I thought it would be the same as bleeding the x velocity but it appears to be gravity affecting it..
@BugbeeYT
@BugbeeYT 3 жыл бұрын
very helpful, i smashed like
@matthewwoosley8403
@matthewwoosley8403 6 жыл бұрын
Hi zentaco. Really big fan your tutorials. Was wondering if you have any videos on making a mobile game with clickteam fusion? By putting joysticks, exporting, and things of that nature.
@TomFowkes
@TomFowkes Жыл бұрын
this helped a lot! but i want the balls to fly from my character towards my mouse pointer do you know of a way to do this? thanks
@almightyzentaco
@almightyzentaco Жыл бұрын
Of course. You could do this a lot of ways. One way would be something like this: direction = point_direction(x, y, mouse_x, mouse_y); x += lengthdir_x(4,direction); y += lengthdir_y(4,direction)
@TomFowkes
@TomFowkes Жыл бұрын
@@almightyzentaco thanks that works great!
@andrevanderleeuw8070
@andrevanderleeuw8070 6 жыл бұрын
Will there be another game jam this year?
@bovery23
@bovery23 3 жыл бұрын
how would you constantly make it bounce without decay?
@EnderPlayed-lp9ko
@EnderPlayed-lp9ko 3 жыл бұрын
just turn decay to 1
@ksioncdesign7075
@ksioncdesign7075 6 жыл бұрын
please more GM tutorials
@badcat8162
@badcat8162 Жыл бұрын
How can I make balls that appears and disappears?
@6ywho
@6ywho 4 жыл бұрын
Good, now in clickteam
@sebaVRarg
@sebaVRarg 4 жыл бұрын
can collide each other?
@LeftyyGD
@LeftyyGD 6 жыл бұрын
Can you make Icy Tower in Clickteam Fusion?
@cheesecakejojo
@cheesecakejojo 5 жыл бұрын
I wrote the exact code you wrote but my obj_ball just falls through obj_wall with no collision. Why is this happening?
@cheesecakejojo
@cheesecakejojo 5 жыл бұрын
Nvm I just figured it out: Under //collide on y-axis, yspd*=-bouncedecay; was actually xspd*=-bouncedecay in my code. So I changed it to yspd.
@icyloves272
@icyloves272 6 жыл бұрын
how to make over than 1000 objects?
@randominternetuser5123
@randominternetuser5123 6 жыл бұрын
hey zentaco, which game engine is better? clickteam fusion or gms studio 2?
@almightyzentaco
@almightyzentaco 6 жыл бұрын
It depends on your level of experience. Gms2 is more powerful out of the box and I recommend all intermediate users try it out. Fusion is best for getting your feet wet in the coding scene.
@randominternetuser5123
@randominternetuser5123 6 жыл бұрын
@@almightyzentaco thank you for the quick reply...im experienced with both engines which made me super confused of which to use :)
@jgee7605
@jgee7605 6 жыл бұрын
How do you IOS export?
@jgee7605
@jgee7605 6 жыл бұрын
With ctf 2.5
@value1042
@value1042 6 жыл бұрын
Cool :)
@andreiveiga4343
@andreiveiga4343 4 жыл бұрын
15:16
@filiphedman4392
@filiphedman4392 5 жыл бұрын
Blue ballz
@tymgus45old23
@tymgus45old23 6 жыл бұрын
Oh_Noes.exe NO, Go back to clickteam!!!1!!!11!!!1
@prorambler8605
@prorambler8605 5 жыл бұрын
having a problem where at low enough speeds the ball clips into and slowly falls through the ground until the game crashes when its collision box is below the wall. Fixed on my own! for those who encounter this: make sure the object's position updates after the collision checks
@ssmot113
@ssmot113 5 жыл бұрын
how? for me it does not stop bouncing
@prorambler8605
@prorambler8605 5 жыл бұрын
@@ssmot113 if you follow this tutorial it's not supposed to stop, only get slower
@ssmot113
@ssmot113 5 жыл бұрын
@@prorambler8605 yes, in the end it does not slow down beyond a certain speed
GMS2 Cameras: As Simple as Possible
13:27
PixelatedPope
Рет қаралды 68 М.
Why I am NOT Making These Enemies
17:06
Deynum Studio
Рет қаралды 213 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
We made Vampire Survivors BUT in 10 Lines of Code
7:08
PlayWithFurcifer
Рет қаралды 1 МЛН
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
🔴Physics [Game Maker Studio 2 | Basics]
8:49
1up Indie
Рет қаралды 13 М.
How I Do It: Smart Clickable GUI
17:22
PixelatedPope
Рет қаралды 27 М.
Resolution and Aspect Ratio Management for Game Maker - Part 1
10:24
PixelatedPope
Рет қаралды 114 М.
GameMaker Studio 2.3: *OOP* GML with Structs & Constructors
14:29
GameMakerStation - Matharoo
Рет қаралды 21 М.
Shadows Tutorial: Game Maker Studio 2
28:34
FriendlyCosmonaut
Рет қаралды 37 М.
Optimisation Tips | GameMaker Studio 2
19:10
FriendlyCosmonaut
Рет қаралды 51 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН