I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: wolfy135 on June 10, 2014, 09:25:17 PM

Title: Avoidance help
Post by: wolfy135 on June 10, 2014, 09:25:17 PM
As someone who is starting to get into game-making, and starting to make avoidances, I had a question of how to do a screen-tilt like some avoidances do, and the picture i have for example is LunarMagic from K3 because it was the first one to come to my head
(click to show/hide)
Does anyone know the code of how to do this, or how they do it?
Thanks a ton if you get working code for me :D
Title: Re: Avoidance help
Post by: YoSniper on June 10, 2014, 09:40:29 PM
Assuming you're using Game Maker Pro (although maybe it's available in the Lite/Standard versions now,) you want to do:

Code: [Select]
view_angle[0] = angle;
Where angle is the angle counter-clockwise from horizontal in degrees. If you're only using the one view, you don't even need the

Just remember to reset it to 0 after you're done.
Title: Re: Avoidance help
Post by: wolfy135 on June 10, 2014, 09:44:10 PM
Where would I place this code, in the timeline step events of where I would want it, or somewhere else?
Title: Re: Avoidance help
Post by: YoSniper on June 10, 2014, 09:45:52 PM
Yes, timeline of Step Events would be where you want it.
Title: Re: Avoidance help
Post by: wolfy135 on June 10, 2014, 09:53:22 PM
Alright, thanks Sniper! I'll test it out when I am able to get to my computer with my Game-Maker on it