Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsWell, 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.
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.
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..
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.
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.Yes, I am suing AS2. But what am i adding to the screen? a white box with the instance name Vcam?
onEnterFrame = function(){
vcam._x = player._x;
vcam._y = player._y;
}
I quess you're using as2..
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.
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.
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".Ok, i did that, and used the little code snippet. it didnt do anything. ._.
The code above was just an example.
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.