Camera Rotating in GM
2 posters
V1RTUAL Forum :: Games :: Codes/Scripts
Page 1 of 1
Camera Rotating in GM
anyone know how to have an event where the camera rotates 180 degrees or 90degrees or 360 degrees, etc?
Re: Camera Rotating in GM
yup. ill go in gm, i dont remember. =̃
Hucota7- Admin
-
Number of posts : 854
Age : 28
Description : V1RTUAL Leader
Re: Camera Rotating in GM
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?
* = 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- Admin
-
Number of posts : 854
Age : 28
Description : V1RTUAL Leader
Re: Camera Rotating in GM
ok. glad i could help.
Hucota7- Admin
-
Number of posts : 854
Age : 28
Description : V1RTUAL Leader
Re: Camera Rotating in GM
yes. i do. would you like to rotate the view, shake the view, or shake the screen?
Hucota7- Admin
-
Number of posts : 854
Age : 28
Description : V1RTUAL Leader
Re: Camera Rotating in GM
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.
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- Admin
-
Number of posts : 854
Age : 28
Description : V1RTUAL Leader
Re: Camera Rotating in GM
youre welcome. =D i better get credit for that. ^^ and remember to set earthquake to false in the create event.
Hucota7- Admin
-
Number of posts : 854
Age : 28
Description : V1RTUAL Leader
Re: Camera Rotating in GM
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.
Hucota7- Admin
-
Number of posts : 854
Age : 28
Description : V1RTUAL Leader
V1RTUAL Forum :: Games :: Codes/Scripts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|