sitemap; link colors on docs; gdd;
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
<p>Merchandise appears in store windows. <br></p>
|
||||
<br>
|
||||
<h2>item pickup </h2>
|
||||
<p>Items can only be picked up by the player. They can be picked up via item targeting or through selecting 'pick up' on the inspect menu. <br></p>
|
||||
<p>Items can only be picked up by the player. They can be picked up via item targeting or through selecting 'pick up' on the <a href="/blessfrey-gdd/inspect">inspect menu</a>. <br></p>
|
||||
<br>
|
||||
<p>Item pickup is triggered when a floor item is targeted, that is, a 'target' (left-click) triggers a $Item/Body/Sprite/Sprite.gd/_on_input_event. If 'no_move_to_target' (shift) is held while targeting, the item will be targeted without initiating pickup. Otherwise, floor_item.gd/target_event(viewport,event,shape_idx) is called to set the target and handle the input before prompting the player to consider pickup. <br></p>
|
||||
<br>
|
||||
<p>Item pickup is also an option on the floor items' inspect menu. Choosing it triggers that floor item's id_pressed(id), which calls the associated method from its inspect_options dictionary: floor_item.gd/move_player_then_pickup(), prompting the player to consider pickup. <br></p>
|
||||
<p>Item pickup is also an option on the floor items' <a href="/blessfrey-gdd/inspect">inspect menu</a>. Choosing it triggers that floor item's id_pressed(id), which calls the associated method from its inspect_options dictionary: floor_item.gd/move_player_then_pickup(), prompting the player to consider pickup. <br></p>
|
||||
<br>
|
||||
<p>Character.gd/consider_pickup(item) passes to UserControl/pickup(item). The next branch depends on a distance check. <br></p>
|
||||
<br>
|
||||
<p>If item.find_distance(player) > the player's <a href="/blessfrey-proxemics">intimate distance</a>,
|
||||
<p>If the item is within the player's <a href="/blessfrey-gdd/proxemics">intimate distance</a>, the character will be prompted to pick up the item.
|
||||
<br>
|
||||
<p>If the item is outside the player's intimate space, <br></p>
|
||||
<p>Otherwise, pathfinding begins. <br></p>
|
||||
|
||||
Reference in New Issue
Block a user