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
Script Help Make something occur upon continue?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#6
RE: Make something occur upon continue?

Say that there is a ScriptArea which covers the entire map.
This means that no matter the player's position, he/she collides with it.
So if I add a CollideCallback between the player and the script, couldn't I code something like:
void blackandwhiteeffect(string &in asParent, string &in asChild, int alState)
{
FadeSepiaColorTo(100.0f, 1.0f);
}

?

Edit: The reason I ask this before I implement is that I do not want the game to continuously do this if it will lag some of the underpriveledged computers.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 04-23-2013, 02:30 PM by Romulator.)
04-23-2013, 02:24 PM
Find


Messages In This Thread
RE: Make something occur upon continue? - by Romulator - 04-23-2013, 02:24 PM



Users browsing this thread: 1 Guest(s)