Author Topic: Avoidance help  (Read 2128 times)

wolfy135

  • Wannabe
  • Posts: 16
  • Keepo
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.114 Chrome 35.0.1916.114
    • View Profile
    • Place I stream
  • Playstyle: Keyboard
Avoidance help
« 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
\ PRAISE THE MIGHTY DINGO /
also follow me on twitch
https://www.twitch.tv/wolfy135 ;)

YoSniper

  • Awexome
  • Global Moderator
  • Spike Dodger
  • Posts: 142
  • People regard me as a programming overlord.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.114 Chrome 35.0.1916.114
    • View Profile
    • My YouTube
  • Playstyle: Keyboard
Re: Avoidance help
« Reply #1 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
  • part.


Just remember to reset it to 0 after you're done.
I don't traverse the forums as much anymore. Follow me on Twitter if you want to keep tabs on me!

Twitter: @YoSniperGames
Twitch: yosniper

Streams happen whenever I feel like it.

wolfy135

  • Wannabe
  • Posts: 16
  • Keepo
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.114 Chrome 35.0.1916.114
    • View Profile
    • Place I stream
  • Playstyle: Keyboard
Re: Avoidance help
« Reply #2 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?
\ PRAISE THE MIGHTY DINGO /
also follow me on twitch
https://www.twitch.tv/wolfy135 ;)

YoSniper

  • Awexome
  • Global Moderator
  • Spike Dodger
  • Posts: 142
  • People regard me as a programming overlord.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.114 Chrome 35.0.1916.114
    • View Profile
    • My YouTube
  • Playstyle: Keyboard
Re: Avoidance help
« Reply #3 on: June 10, 2014, 09:45:52 PM »
Yes, timeline of Step Events would be where you want it.
I don't traverse the forums as much anymore. Follow me on Twitter if you want to keep tabs on me!

Twitter: @YoSniperGames
Twitch: yosniper

Streams happen whenever I feel like it.

wolfy135

  • Wannabe
  • Posts: 16
  • Keepo
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.114 Chrome 35.0.1916.114
    • View Profile
    • Place I stream
  • Playstyle: Keyboard
Re: Avoidance help
« Reply #4 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
\ PRAISE THE MIGHTY DINGO /
also follow me on twitch
https://www.twitch.tv/wolfy135 ;)