Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

A Problem with View Range when upgrading to SDK

I have recently been making the switch over from old scripts to their new SDK versions from the SDK test bed but have hit a problem.

In a stealth section of my game, the view range used to only apply to a semi circle in front of the event (soldier), but now with the SDK version the "Found You" Event triggers even when the events are facing in the opposite direction.

So could someone please help with how I change this:

Conditional Branch If:
Code:
VR.in_range?($game_map.events[42], $game_player , 5)
Activates Switch: Found You!

So that he can only see his range as if he were a human, and perhaps even more preferably have his range consist of only a 90 degree angle as opposed to 180 degrees like in the old View Range Script.

Thanks in advance
 
Im gonna have to bump again... I've also realised in my absense there has been new versions of the SDK test bed released by Sephiroth Spawn, does this new version include an example of how to do it, its just since the hack it doesnt seem to be up anywhere.
 
bump, please guys, one of the scripters must be able to make easy work of this...

Edit - Just seen the notice in SS sig, but i still don't know if an example of this function is included within it.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top