HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: Camera tutorial  (Read 1546 times)

ShaolinNinja

  • General Accounts
  • *
  • Posts: 33
    • View Profile
Camera tutorial
« on: May 20, 13, 10:49:29 PM »

I feel dumb for asking this, but I can not figure out how to deactivate the FPS camera from the FPS tutorial. I activated it just fine, but I want Game camera back... Tried deactivatefps_camera in the console many different ways, many different times.
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1149
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: Camera tutorial
« Reply #1 on: May 20, 13, 11:25:12 PM »

There are a few 1st person camera tutorials, 1 in the wiki, 1 in the devs tutorials, and a mod or 2 in there. Which tutorial are you using?

Using commands in the console window will need to have a script that responds to them. Most of the time, you can set a toggle in script to turn the FPS on and off. Buttons are good for this, push once - toggle on, push again toggle off.

(If you are asking about the editor camera in heroblade. The top row on left side has pictures for different camera settings.)
Logged

ShaolinNinja

  • General Accounts
  • *
  • Posts: 33
    • View Profile
Re: Camera tutorial
« Reply #2 on: May 20, 13, 11:29:37 PM »

I am using the Wiki tutorial
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1149
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: Camera tutorial
« Reply #3 on: May 21, 13, 12:22:36 AM »

Ah, ok. I have not tried that one yet. I used the player tutorial. It was more up to date and I got ours working based on it.
Logged

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: Camera tutorial
« Reply #4 on: May 21, 13, 09:17:16 AM »

If you copied from the huge code block they left out a line.

function DeactivateFPS_CameraLayer()
  ActivateCmdLayer( "FPS_Camera", false )
  ActivateCamera( "GAME" )
.

Make sure your deactiveate function looks like that.
in the big code block they leave off the ActivateCamera("Game")
Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]

ShaolinNinja

  • General Accounts
  • *
  • Posts: 33
    • View Profile
Re: Camera tutorial
« Reply #5 on: May 21, 13, 11:36:22 AM »

I copied from the small block and found that issue in the forum, so it is written correctly. It just doesn't work when I do a callback to deactivate camera.
Logged

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: Camera tutorial
« Reply #6 on: May 21, 13, 03:42:13 PM »

if you do a println in the deactivate function does it print out? Just making sure it's calling.

Does it error?
Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: Camera tutorial
« Reply #7 on: May 23, 13, 11:38:25 PM »

are you using all caps "GAME"  ?

sometimes HE look ups aren't case Sensitive other times they are.
Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]

ShaolinNinja

  • General Accounts
  • *
  • Posts: 33
    • View Profile
Re: Camera tutorial
« Reply #8 on: May 24, 13, 11:39:10 AM »

I used all caps. What is the exact line I must type to deactivate the FPS script? I may just be typing it wrong.
Logged

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: Camera tutorial
« Reply #9 on: May 24, 13, 06:39:04 PM »

in the tutorial it should be

from the console

call fps_camera_callback DeactivateFPS_CameraLayer()

that is assuming you built the class with the hero script editor
If you made the class with the DOM editor

call fps_camera_callbackClassMethods DeactivateFPS_CameraLayer()

Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]