The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Changing the direction of crushing walls?
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
Changing the direction of crushing walls?

I'm in the process of creating an event where player is trapped within walls, which move. If he stays in the room for too long, and doesn't figure out how to escape, the walls eventually crush him, insta-killing him. I haven't however been able to think on how to actually move the walls towards the player. In Justine, a
PHP Code: (Select All)
void SetMoveObjectStateExt(stringasNamefloat afStatefloat afAccfloat afMaxSpeedfloat afSlowdownDistbool abResetSpeed); 
function is used, though there's no such thing as X, Y or Z axis in this func as far as I see, unlike in the function used to rotate assets.

So my question is how do I force the walls to move towards the player?

To illustrate my problem I'm leaving a screenshot below.

Spoiler below!
[Image: 1e1b2e0a2be343e1ab93666a09b1ef75.png]
(This post was last modified: 05-25-2016, 10:55 PM by Slanderous.)
05-25-2016, 10:49 PM
Find


Messages In This Thread
Changing the direction of crushing walls? - by Slanderous - 05-25-2016, 10:49 PM



Users browsing this thread: 1 Guest(s)