RaycastParams.Additional Requirements Requires iOS 10.0 or later. Local RaycastParams = RaycastParams.new() Local ViewportRay = CurrentCam:ViewportPointToRay(Vector.X, Vector.Y, 0) Local OnScreen = Noticable and Vector.Z > 0 Local Vector, Noticable = CurrentCam:WorldToViewportPoint(MainPart.Position) Maybe as a tip: the game is in first person… The only thing ive noticed is that there is a function called raycasting, but i dont know how to use it. I tried making a script with some help from a good scripter (called BeatVien), but every method we tried didnt work… i also informed myself on social media. As a function i would make the part disappear after 2 seconds the player saw the part (monster). The script makes sure that the players screen really sees the part (also not trough walls, and only from a limited distance). the script checks if a located part in workspace is visible to the players screen. These kind of jumpscares are effective too but they only appear if you touched a part (of a monster for example). I was wondering, if there is a method, making an effective jumpscare (not jumpscares like the mimic). Im currently making a horror game (no name for it yet), sorry if i cant send any screenshots, this game is still in beta.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |