V1RTUAL Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Camera Rotating in GM

2 posters

Go down

Camera Rotating in GM Empty Camera Rotating in GM

Post by Sinister 96 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?
Sinister 96
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

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

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

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

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

Post by Hucota7 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?
Hucota7
Hucota7
Admin
Admin

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

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

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

yeah! maybe!
Sinister 96
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

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

ok. sunglasses glad i could help.
Hucota7
Hucota7
Admin
Admin

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

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

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

do you know how to make earthquake effect btw?
Sinister 96
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

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

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

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

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

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

shake the view
Sinister 96
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

Post by Hucota7 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.
Hucota7
Hucota7
Admin
Admin

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

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

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

COOL LOL THX
Sinister 96
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

Post by Hucota7 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.
Hucota7
Hucota7
Admin
Admin

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

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

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

k
Sinister 96
Sinister 96
Elite Mod
Elite Mod

Male
Number of posts : 840

http://sshc.forumotion.net/

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

Post by Hucota7 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
Hucota7
Hucota7
Admin
Admin

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

Back to top Go down

Camera Rotating in GM Empty Re: Camera Rotating in GM

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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