Game Maker Studio: How to Parent & Rotate Weapons? VIDEO
Visit my MC GAMES site, got a new game coming soon, play Alien Wars BattleFront Demo:
https://bit.ly/2HJ1GxK
Paypal Donate: https://bit.ly/30e8VDZ
GMS File: https://bit.ly/2VbaT5a
If you want to pickup your weapons, see this video:
How to Collect, Cycle, & Use you're Items?
Link: https://bit.ly/3fJu92V
obj_weapon1, obj_weapon2, obj_weapon3, Depth -5 makes the gun above obj_player. Be sure they are all Parented to obj_player and use the below code. Also press Q key for all weapons, in the obj_weapon1 in the Actions: Use the Change Instance drop in to obj_weapon2, then in obj_weapon2, Change Instance to obj_weapon3, then Change Instance to obj_weapon1
Events:
Create
Actions:
target = obj_player;
myspeed = 0;
length = 0;
place = 0;
Events:
Step
Actions:
x = obj_player.x + lengthdir_x(length,place);
y = obj_player.y + lengthdir_y(length,place);
place += myspeed;
obj_player, be sure to set origins to the location you want the gun to be at on player. Depth 0
Other Videos By MC Designs 2021-01-02 Game Maker Studio: How to Jump through a Platform, & Land on it? 2021-01-02 Game Maker 8.1: How to Use Alarms, for Movements? 2021-01-02 Game Maker 8.1: How to Create Controlled Spawning? 2020-12-27 Game Maker Studio: How to Create Controlled Spawning? 2020-12-27 Game Maker Studio: How to Use Paths, instead of Timelines & Alarms? 2020-12-25 Game Maker 8.1: How to Create Message Boxes? 2020-12-24 Game Maker Studio: How to Use Timers, instead of Timeline Moments? 2020-12-20 Game Maker 8.1: How to Make Monster Patrol Area, then Follow You? 2020-12-12 Game Maker Studio: How to Create Enemy Random Spawning? 2020-12-05 Game Maker Studio: (Part 4) How to Create Virtual Keys for Android? 2020-11-27 Game Maker Studio: How to Parent & Rotate Weapons? 2020-11-14 Game Maker Studio: How to Create a Cut Scene Animation? 2020-11-07 Game Maker Studio: How to Slow Down Animation, without using Several Images? 2020-10-31 Game Maker Studio: How to Create Animated Score Points, using Code? 2020-10-24 Game Maker Studio: How to Create a Character Select Screen? 2020-10-11 Game Maker Studio: (Part 2) How to Pickup, Drop, & Throw an Item? 2020-10-11 Game Maker 8.1: How to Throw a Grenade? 2020-10-04 Game Maker Studio: (Part 1) How to Pickup & Drop an Item? 2020-10-03 Game Maker Studio: How to Create a Fade In & Fade Out, using Code? 2020-09-25 Game Maker Studio: How to Create a Flame & Smoke Effect? 2020-09-20 Game Maker 8.1: How to Create Key Hover, & Door Opening from the Bottom to the Top?
Tags: rotate
weapon
gun
guns
learn
teach
how
move
change
shot
shoot
range
fire
origin
character
player
parent
object
obj
device
windows
android
computer
pc
game
studio
guy
brick
see
back