Game Maker Studio: How to Create Physics for Objects in the room.

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=NR7_hcR4SWs



Duration: 13:35
52 views
0


Visit my anime and game site: http://mcanime1.wixsite.com/mcanime

GMX File: https://bit.ly/2S5cvdd

Something extra you can do, if you want. In this video I did not talk about obj_controller. Be sure the obj_controller object is in the room, otherwise it will not work.

obj_controller

Events:

Click on Add Events button at the bottom, select Mouse button, at bottom select Global Mouse Left Pressed. This will allow you to click any where in the room. Next grab a coded sheet from the Control tab and put it in the Actions:

Actions:

instance_create(mouse_x, mouse_y, obj_block); //This will allow //you to click any where in the room and it will produce obj_blocks.


obj_ball

Events:

Step


Actions:

if (keyboard_check(vk_right)) {
phy_position_x +=8;
}

if (keyboard_check(vk_left)) {
phy_position_x -=8;
}

if (keyboard_check(vk_up)) {
phy_position_y -=20;
}




Other Videos By MC Designs


2019-01-13Game Maker 8.1: Fake 3D FPS, How to Get Hit, End Game, Destroy & Stop at Barrels.
2019-01-12Game Maker 8.1: Fake 3D FPS, How to Create a Weapon, Health Bar, Doors, & Plants.
2019-01-06Game Maker 8.1: (Part 2) How to Create D3D Setup, Camera View, Player, Floor, Ceiling, & Walls.
2019-01-06Game Maker 8.1: (Part 1) How to Create D3D Setup, Camera View, Player, Floor, Ceiling, & Walls.
2018-12-24Game Maker Studio: How to Collect Items in you’re Item Box, using Image Indexing.
2018-12-23Game Maker Studio: How to Move in Wind.
2018-12-16Game Maker Studio: How to Create Text Arrays, for a Inventory System.
2018-12-08Game Maker Studio: How to Create a 2 player Split Screen & Use the Keypad.
2018-11-24Game Maker Studio: How to Create DS Card Stacking.
2018-11-24Game Maker Studio: How to Change Colors & Expressions on a Sprite.
2018-11-19Game Maker Studio: How to Create Physics for Objects in the room.
2018-11-18Game Maker Studio: How to Create a Particle System without Code.
2018-11-08Game Maker Studio: How to Master a Precise Collision hit.
2018-11-01Game Maker Studio: How to Show +1 Point Animation Collect from a Coin & Checkpoint.
2018-10-27Game Maker Studio: How to Swing on Rope.
2018-10-22Game Maker Studio: How to Create a Screen Shake.
2018-10-13Game Maker Studio: Mastering Rain.
2018-10-07Game Maker Studio: How to Create a Parallax Background.
2018-07-15Game Maker Studio: How to Unlock Rooms in You're Game.
2018-06-16Game Maker Studio: How to Collect a Certain Number of Coins to Gain Health.
2018-06-09Game Maker Studio: How to Create Enemy Health Bars above their heads.



Tags:
windows
pc
computer
physics
gravity
drop
move
push
boxes
blocks
fall
steps
wall
friction
motion
real
realistic
true
movement
flow
smooth
surface
objects
room
create
learn
teach
how
show
graceful
game
maker
studio
object
block
circle
controller
mouse
button
pressed
global
instance
produce
keyboard
check
position
phy
if
code