Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Iuses

9
Posts
4
Topics
A member registered Nov 21, 2019

Recent community posts

It seems like adding code to map.gd anywhere lead to freeze of the map. Here is my code to the end of _ready()


extends Control

#warning-ignore:unused_class_variable
var mouse_in = false
#warning-

ignore:unused_class_variable
var dragging = false
onready var size = $TextureRect.get_size()
var
offset = Vector2()
var status = 'none'
var timer = 0

var currentloc = null

var newNode = find_node("sea").duplicate()
newNode.rect_position = Vector2(100,100)
newNode.name = "newZone"
find_node("roads").add_child(newNode)

func _ready():
    for i in get_node("TextureRect/roads").get_children() +
get_node("TextureRect/towns").get_children():
        i.connect

("mouse_entered",self,'showtooltip',[i])
        i.connect

("mouse_exited",self,'hidetooltip')

func _input(event):
    if self.is_visible_in_tree() == false:
    

    return
    if event.is_action_pressed("LMB"):
        var eventpos =
event.global_position
        var barpos = $TextureRect.get_global_position()
        size =
$TextureRect.get_size()
        var target_rect = Rect2(barpos.x, barpos.y, size.x, size.y)
    

    if target_rect.has_point(eventpos):
            status = 'clicked'
        

    offset = barpos - eventpos
    if event.is_action_released("LMB"):
        status
= 'none'
    if status == 'clicked' and event.is_class("InputEventMouseMotion"):
        

status = 'dragging'
    #centermap('frostford')
    if status == 'dragging':
        

$TextureRect.set_global_position(event.global_position+offset)

Please explain more on  how to do TextureRect on reddot things. I now successfully make a new zone. but it won't appear in map.  In explorationregions.gd there are no such thing that define position of each zone.

How can I add new zone into the map? I mean, make them visible in the map as red dot and show how it connects like those originals.

I try to make an item that increase max stats but it fail.

I use the the following code

person.str_max = +1

The item can be used on slave but have no effect. What's wrong?

Why cant't I add

armorcarapace+

into the ewuipment drop list?

Is this item are coded elsewhere to not be enchanted?

There are something like 'You notice some of your gold are missing.' in the report. What's it and How to fix?

How to modify bandit spawn race? I open combatdata.gd and cannot find it anywhere.

Do you mean, no matter how many time I upgrade and level up my slaves, they will still gain battle stress at the same rate as beginning. And the only thing I can do is to reduce stress later?

My initial slaves get stressed red easily after a few battle. Almost making them useless in battling.

So how to reduce these stress accumulated in battle? Could upgrading or teaching them courage any help?