Camera Rotating in GM

Go down

Camera Rotating in GM

Post by Sinister 96 on Fri Jun 26, 2009 5:09 am

anyone know how to have an event where the camera rotates 180 degrees or 90degrees or 360 degrees, etc?

_________________
avatar
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Re: Camera Rotating in GM

Post by Hucota7 on Fri Jun 26, 2009 5:10 am

yup. ill go in gm, i dont remember. =̃

_________________
avatar
Hucota7
Admin
Admin

Male
Number of posts : 854
Age : 23
Description : V1RTUAL Leader

Back to top Go down

Re: Camera Rotating in GM

Post by Hucota7 on Fri Jun 26, 2009 5:15 am

view_angle[*]

* = view number, usually 0

so if you wanted to do spinning it would be
view_angle[0]+=5
or something like that. if you want it to randomly change between 0,90,180,270 the code would be
if floor(random(10))=0
{
view_angle[0]=choose(0, 90,180,270)
}

was that helpful?

_________________
avatar
Hucota7
Admin
Admin

Male
Number of posts : 854
Age : 23
Description : V1RTUAL Leader

Back to top Go down

Re: Camera Rotating in GM

Post by Sinister 96 on Fri Jun 26, 2009 5:19 am

yeah! maybe!

_________________
avatar
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Re: Camera Rotating in GM

Post by Hucota7 on Fri Jun 26, 2009 5:21 am

ok. sunglasses glad i could help.

_________________
avatar
Hucota7
Admin
Admin

Male
Number of posts : 854
Age : 23
Description : V1RTUAL Leader

Back to top Go down

Re: Camera Rotating in GM

Post by Sinister 96 on Fri Jun 26, 2009 5:23 am

do you know how to make earthquake effect btw?

_________________
avatar
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Re: Camera Rotating in GM

Post by Hucota7 on Fri Jun 26, 2009 5:25 am

yes. i do. would you like to rotate the view, shake the view, or shake the screen?

_________________
avatar
Hucota7
Admin
Admin

Male
Number of posts : 854
Age : 23
Description : V1RTUAL Leader

Back to top Go down

Re: Camera Rotating in GM

Post by Sinister 96 on Fri Jun 26, 2009 5:40 am

shake the view

_________________
avatar
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Re: Camera Rotating in GM

Post by Hucota7 on Fri Jun 26, 2009 5:40 am

there might be another way, but i couldnt figure it out.

if earthquake=true
{
x+=random(1)-random(2)
y+=random(1)-random(2)
}

if floor(random(2))=0
{
x=obj_player.x
y=obj_player.y
}

i hope youre a good code reader. =P if you want to shake the screen, pm me.. its supersecret awesomeness.

_________________
avatar
Hucota7
Admin
Admin

Male
Number of posts : 854
Age : 23
Description : V1RTUAL Leader

Back to top Go down

Re: Camera Rotating in GM

Post by Sinister 96 on Fri Jun 26, 2009 5:49 am

COOL LOL THX

_________________
avatar
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Re: Camera Rotating in GM

Post by Hucota7 on Fri Jun 26, 2009 5:50 am

youre welcome. =D i better get credit for that. ^^ and remember to set earthquake to false in the create event.

_________________
avatar
Hucota7
Admin
Admin

Male
Number of posts : 854
Age : 23
Description : V1RTUAL Leader

Back to top Go down

Re: Camera Rotating in GM

Post by Sinister 96 on Fri Jun 26, 2009 5:56 am

k

_________________
avatar
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Re: Camera Rotating in GM

Post by Hucota7 on Fri Jun 26, 2009 5:59 am

if a boulder falls off a cliff or somethin, you could do that code up there ↑ but add alarm[0]=30 and in the alarm earthquake=false. so it would only shake for a second. razz

_________________
avatar
Hucota7
Admin
Admin

Male
Number of posts : 854
Age : 23
Description : V1RTUAL Leader

Back to top Go down

Re: Camera Rotating in GM

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum