Be a Supporter!

Vcam? D:

  • 421 Views
  • 7 Replies
New Topic Respond to this Topic
flailthefox
flailthefox
  • Member since: Aug. 30, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Vcam? D: 2009-09-11 13:04:20 Reply

Well, first off, W00t, i got CS4 to replaced my broken CS3. :D

I started working on an experimental platformer, and so far, not bad! but the tutorial in which i looked up about Vcam didnt seem to work. :/

Can someone explain Vcam to em and point me in the direction of a good vcam tutorial? I would be grateful.


Destroyed.

OMGx
OMGx
  • Member since: Oct. 4, 2007
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Vcam? D: 2009-09-11 13:13:26 Reply

What do you want to do with it? (vcam i mean)


"Marx was wrong. Religion is not the opiate of the masses, religion is the placebo of the masses."

BBS Signature
flailthefox
flailthefox
  • Member since: Aug. 30, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Vcam? D: 2009-09-11 13:14:59 Reply

simplez. I'm making a flat kind of game. all you do is walk on it a bit. but i want the vcam so it follows the player, like you should think. Example: Your the character, and you walk across this part for a while. you want the vcam to follow :D.


Destroyed.

West-End-Pro
West-End-Pro
  • Member since: Feb. 15, 2006
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Vcam? D: 2009-09-11 13:17:31 Reply

At 9/11/09 01:14 PM, flailthefox wrote: simplez. I'm making a flat kind of game. all you do is walk on it a bit. but i want the vcam so it follows the player, like you should think. Example: Your the character, and you walk across this part for a while. you want the vcam to follow :D.

Add it to the stage, then every frame set its x and y co-ordinates to that of the players. Simplez.

onEnterFrame = function(){
vcam._x = player._x;
vcam._y = player._y;
}
I quess you're using as2..
flailthefox
flailthefox
  • Member since: Aug. 30, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Vcam? D: 2009-09-11 13:57:39 Reply

At 9/11/09 01:17 PM, West-End-Pro wrote: Add it to the stage, then every frame set its x and y co-ordinates to that of the players. Simplez.

onEnterFrame = function(){
vcam._x = player._x;
vcam._y = player._y;
}

I quess you're using as2..

Yes, I am suing AS2. But what am i adding to the screen? a white box with the instance name Vcam?


Destroyed.

West-End-Pro
West-End-Pro
  • Member since: Feb. 15, 2006
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Vcam? D: 2009-09-11 14:18:34 Reply

At 9/11/09 01:57 PM, flailthefox wrote:
At 9/11/09 01:17 PM, West-End-Pro wrote: Add it to the stage, then every frame set its x and y co-ordinates to that of the players. Simplez.

onEnterFrame = function(){
vcam._x = player._x;
vcam._y = player._y;
}

I quess you're using as2..
Yes, I am suing AS2. But what am i adding to the screen? a white box with the instance name Vcam?

Download the vcam (Link, click on "Download vCam AS2 FLA", and add it to your flash file. Then drag it onto the stage, and give it the instance name "vcam".

The code above was just an example.

flailthefox
flailthefox
  • Member since: Aug. 30, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Vcam? D: 2009-09-11 14:45:49 Reply

At 9/11/09 02:18 PM, West-End-Pro wrote:
Download the vcam (Link, click on "Download vCam AS2 FLA", and add it to your flash file. Then drag it onto the stage, and give it the instance name "vcam".

The code above was just an example.

Ok, i did that, and used the little code snippet. it didnt do anything. ._.
heres the cpoy of the FLA. http://spamtheweb.com/ul/upload/110909/7 1156_Walk_in_the_park.fla


Destroyed.

West-End-Pro
West-End-Pro
  • Member since: Feb. 15, 2006
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Vcam? D: 2009-09-11 15:11:51 Reply

At 9/11/09 02:45 PM, flailthefox wrote:
At 9/11/09 02:18 PM, West-End-Pro wrote:
Download the vcam (Link, click on "Download vCam AS2 FLA", and add it to your flash file. Then drag it onto the stage, and give it the instance name "vcam".

The code above was just an example.
Ok, i did that, and used the little code snippet. it didnt do anything. ._.
heres the cpoy of the FLA. http://spamtheweb.com/ul/upload/110909/7 1156_Walk_in_the_park.fla

The code was an example - That means you don't copy and paste it, you have to change it yourself. Fla. Don't know why its doing that annoying bobbling thing.

I've put the v-cam code on the frame, not on the player.