Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Iphigenia

#1
Can anyone help me add a vision cone to a patrolling NPC? I've read all I can find in the forum on the subject, but can't get my unmathematical head round it  :-[

The vector method sounds fantastic, but is beyond me unless I can paste some ready-made code straight into my script.

The situation: I have an NPC following a roughly circular patrol route made up of around 9 waypoints. I'd like to have him 'looking' directly in front of him as he goes (vision cone pointed in same direction as his direction of travel). If the player 'collides' with this vision cone there's a chance he's spotted.

Thanks in advance.

#2
I have a vehicle-like character that I'd like to be able to rotate left and right (with A and D keys) and move forward and back in direction of facing (with W and S keys).

Despite looking in confused awe at zabnat's Taxi demo source code:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36546.0

spending several hours trying to adapt Ryan Timothy's Road Racer rotation code:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=38401.0

and searching in vain for KhrisMUC's Dynamic Rotation Module:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=33122.0

I don't seem to be able to achieve this end. Can anyone help me out with some guidance?

Thanks.
#3
I'm trying to create a puzzle where objects must be placed entirely within hotspots (no overlap) but can't seem to figure out how to do it.  Right now, if the bottom-left corner of an object is within a hotspot then the puzzle is solved (not what I intended).

I've tried various inelegant solutions including surrounding the hotspots with 'hidden' objects and doing a pixel-perfect collision detection check, but this only worked if I made the 'hidden' objects clickable (not acceptable).

All suggestions gratefully received.
#4
The objects in my game are draggable and use fairly large sprites. Currently when I click on them, they 'jump', centring on the cursor. Can some wise soul tell me if it is possible to prevent this behaviour, and have objects dragged from the exact point the mouse clicks on them?
#5
Would anyone be kind enough to guide me through the code necessary for dragging and dropping objects with the LMB? I've tried adapting examples in other threads, but don't seem to be making any progress. :(     
#6
I'm a couple of days into my first AGS project and struggling to work out how to get the mouse to tint objects momentarily as it passes over them.

I've done a search, found, and attempted to utilise the code in this thread:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36056.0

but can't seem to get it to work. I keep getting a  'cannot assign intial value to global value pointer'.

If someone can explain the steps in a little more detail, I'd greatly appreciate it. I'm still not sure I've created the custom 'tint' property in the right place or fully understood how to create/position a rep_ex.

Thanks in advance.
SMF spam blocked by CleanTalk