Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HAI GUYS!
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#12
RE: HAI GUYS!

Did you include the definition of the constants as I did in my code? Those constants are there so you can specify the names of the objects without having to alter the attachCrankToBase function at all.

/////////////////////////////////////////////////////////////
//CONSTANTS                                                //
/////////////////////////////////////////////////////////////
const string _crankSignature = "crank_base_"; //Constant so you can change the naming of your cranks.
const string _doorName = "vertical_door_1";   //Place the name of your door here

This was done to provide a single point of control for the attachCrankToBase function - want to use objects called "wheel_base_" - then instead of going through the code and changing it in loads of places, you can just do it in that one constant and let the HPL do the rest for you at no performance loss.

(This post was last modified: 06-08-2011, 02:41 AM by Apjjm.)
06-08-2011, 02:37 AM
Find


Messages In This Thread
HAI GUYS! - by SLAMnesia - 06-07-2011, 04:16 AM
RE: HAI GUYS! - by DannieWest - 06-07-2011, 03:10 PM
RE: HAI GUYS! - by ferryadams10 - 06-07-2011, 03:27 PM
RE: HAI GUYS! - by SLAMnesia - 06-07-2011, 04:18 PM
RE: HAI GUYS! - by Apjjm - 06-07-2011, 05:31 PM
RE: HAI GUYS! - by SLAMnesia - 06-07-2011, 05:43 PM
RE: HAI GUYS! - by palistov - 06-07-2011, 09:21 PM
RE: HAI GUYS! - by Apjjm - 06-07-2011, 10:35 PM
RE: HAI GUYS! - by Acies - 06-07-2011, 10:40 PM
RE: HAI GUYS! - by palistov - 06-07-2011, 11:07 PM
RE: HAI GUYS! - by SLAMnesia - 06-08-2011, 12:48 AM
RE: HAI GUYS! - by Apjjm - 06-08-2011, 02:37 AM
RE: HAI GUYS! - by SLAMnesia - 06-08-2011, 02:58 AM



Users browsing this thread: 1 Guest(s)