The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 5:38 am

Forum rules


IMPORTANT

This Forum is for Flash related questions ONLY! Do not ask questions about spriting, Game Maker, Photoshop, or anything else not related to Flash.



 [ 14 posts ] 
[Request] Camera 
Author Message
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
Okay i know a post about a camera following your character has already been posted(http://forums.mcleodgaming.com/viewtopic.php?f=10&t=13984), but i couldn't get it to work. Help! Oh and can you guys make it so like in ssf2 how the farther apart the characters are from each other, the more zoomed in or out the camera is.

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Wed Jul 08, 2009 4:04 pm
WWW
User avatar

Joined: Tue Sep 02, 2008 6:58 pm
Posts: 146
Location: Vzla
Country: Venezuela (ve)
Gender: Anime Girl
well... i dont know much about codes but i think that if the camera will zoom to all players u would have to put the camera code to all players

_________________
Image
Image
^Please, click on them :)


Wed Jul 08, 2009 5:30 pm
WWW
User avatar

Joined: Mon Jul 06, 2009 11:54 am
Posts: 57
Gender: Male
I thought it was something like you have one big invisible box and when the instances(Or mc's for movieclips) are far farther apart the vcam zooms out but when the instances are closer together it zooms in.

_________________
Best Website's For Mugen Characters
http://www.mugencharacters.ucoz.com
& http://mugeninvasion.ucoz.com/load/3-1-0-6
ImageImageImage
My Youtube: http://www.youtube.com/reashun14
I PLAY COMBAT ARMS ONLINE!
Image


Wed Jul 08, 2009 5:42 pm
WWW
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
I already know that i have to put the code on all the players, it's just the code dosen't work!

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Wed Jul 15, 2009 4:57 pm
WWW
User avatar

Joined: Mon Jul 06, 2009 11:54 am
Posts: 57
Gender: Male
sora12 wrote:
I already know that i have to put the code on all the players, it's just the code dosen't work!

There's A code I use.
Code:
var CamDist:Number = Math.sqrt(Math.abs((CamCurrX - (_root.ichigo_bored.gif._x - (_root._width/2)))) + Math.abs((CamCurrY - (_root.character._x - (_root._width/2)))));
var CamAngle:Number = Math.atan2(Math.abs((CamCurrY - (_root.ichigo_bored.gif._y - (_root._height/2)))),Math.abs((CamCurrX - (_root.character._x - (_root._width/2)))));
if(charSpeed > 10){
var CamSpeed:Number = charSpeed *.5;
}else{
var CamSpeed:Number = 5;
}
if(CamDist > CamSpeed){
var CamCurrY:Number = CamCurrY + (CamSpeed * Math.cos(CamAngle));
var CamCurrX:Number = CamCurrX + (CamSpeed * Math.sin(CamAngle));
}
_root._x = CamCurrX;
_root._y = CamCurrY;


It focuses on the whole stage.
Tell me if it works or not because It works fine with me.

_________________
Best Website's For Mugen Characters
http://www.mugencharacters.ucoz.com
& http://mugeninvasion.ucoz.com/load/3-1-0-6
ImageImageImage
My Youtube: http://www.youtube.com/reashun14
I PLAY COMBAT ARMS ONLINE!
Image


Wed Jul 15, 2009 6:35 pm
WWW
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
That was the first code i use, and nothing. :-_-:

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Tue Jul 28, 2009 2:44 pm
WWW
User avatar

Joined: Mon Jul 06, 2009 11:54 am
Posts: 57
Gender: Male
sora12 wrote:
That was the first code i use, and nothing. :-_-:

Ok look at this tutorial on youtube.
YouTube Video:

And when he gets to the part that says paste the vcam script in layer 1 (which will be under actions in the vid) paste the code I gave you.
To make it easier how about I just let you have a copy of my vcam, and all you will have to do is import it to the library and drag to the stage
(Private message me for the link because I can't file share without getting a second warning),

_________________
Best Website's For Mugen Characters
http://www.mugencharacters.ucoz.com
& http://mugeninvasion.ucoz.com/load/3-1-0-6
ImageImageImage
My Youtube: http://www.youtube.com/reashun14
I PLAY COMBAT ARMS ONLINE!
Image


Wed Jul 29, 2009 12:31 pm
WWW

Joined: Wed Jul 29, 2009 5:12 am
Posts: 1
Gender: Anime Girl
What type of video camera should I use? I want to create an amature movie. I have a boom mike but a standard digital video camera that seems to deliver poor picture quality and movement. I know there is a great difference in a home shot video camera and a production quality movie, i just don't know what that is. Could someone suggest an affordable camera that could deliver movie quality video?
_____________________
external keyword tool ~ keyworddiscovery.com ~ keycompete.com ~ compete.com ~ webmasterworld.com


Last edited by verankey on Sun Aug 02, 2009 1:42 am, edited 1 time in total.



Sat Aug 01, 2009 2:14 am
User avatar

Joined: Wed Apr 29, 2009 11:28 pm
Posts: 323
Location: Nowhere, Antarctica
Gender: Anime Girl
Skype: Evilagram
Perhaps you're forgetting the guy who invented the actionscript camera? http://www.oreillynet.com/pub/a/javascr ... tml?page=2

It was made for Adam Phillips, master flash animator.

_________________
Image

Style [Stayl] (n) - One's unique and personal method of defacing a perfectly good piece of paper.

READ THIS: http://ipgd.freehostia.com/copypasta.html


Sat Aug 01, 2009 9:22 am

Joined: Wed Nov 26, 2008 10:43 am
Posts: 16
It will work like this.

Code:
onClipEvent (enterFrame) {
_y += (_root.Char._y-_y);
_x += (_root.Char._x-_x);
}


Basically you could put this to ANYthing. What it will do is put something right on the listed MC. If you want a camera to follow the player, make sure the vcam source code is INSIDE the vcam, and put the code i just gave you up there out side of the vcam.

Now time to explain the code...

Code:
onClipEvent (enterFrame) {
_y += (_root.Char._y-_y); // this is the Y axis.(which tells what the MC y axis number it is in)
_x += (_root.Char._x-_x); // this is the X axis.(which tells what the MC x axis number it is in)
} //end if


Hope this helped.


Tue Aug 18, 2009 12:39 pm
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
It's still not working! Maybe flash hates me...I wonder what cleod9 uses for the camera. That would end this problem.

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Wed Aug 19, 2009 11:38 am
WWW

Joined: Wed Nov 26, 2008 10:43 am
Posts: 16
sora12 wrote:
It's still not working! Maybe flash hates me...I wonder what cleod9 uses for the camera. That would end this problem.



Did you remove the "char" and replace it with your movieclip's instance name?


Thu Aug 20, 2009 10:26 am

Joined: Mon Aug 03, 2009 5:24 am
Posts: 4
Location: Derby, UK
Gender: Male
http://bryanheisey.com/blog/?p=1

Try that one, it should work, its all ready made for flash, but it may not work for your flash... just try it.

scroll down the page and it should have a link saying vcam flash download or something, click on that and it should download. Hope it works for you!


Sat Sep 05, 2009 8:05 am
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
Clyde02 wrote:
Did you remove the "char" and replace it with your movieclip's instance name?

First thing I do with any code I didn't type up myself, check what to change.

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Sun Sep 06, 2009 12:54 pm
WWW
Display posts from previous:  Sort by  
 [ 14 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.