Work on quest locations and the first, brokedown guildhall scene.
This commit is contained in:
14
scripts/quest_event_location.gd
Normal file
14
scripts/quest_event_location.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends Control
|
||||
|
||||
var view : QuestView
|
||||
var quest : Quest
|
||||
var event : Quest.Event
|
||||
var speed : float
|
||||
func _ready():
|
||||
position.x = (quest.progress - event.progress_point) * quest.length
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
position.x -= view.base_speed * delta
|
||||
|
||||
func activate(...params):
|
||||
pass
|
||||
Reference in New Issue
Block a user