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.

Topics - Zefk

Pages: [1] 2 3 ... 6
Development / [Solved]Hero state question
« on: August 09, 2018, 11:47:50 pm »
I was wondering if there was a way to set the hero's state? All I noticed in the documentation was hero:get_state().

Sometimes the hero gets stuck on a certain state in my scripts and something like the following would be useful.

Code: ( lua) [Select]

Bugs & Feature requests / [Solved]on_removed() warning issue?
« on: July 28, 2018, 12:48:17 am »
To begin with, this issue does not affect the game play at all and everything works. It is just an annoying warning.

I have this code on a different map.
Code: ( lua) [Select]
  function slime:on_removed()

When I leave the map and go to a different map, I get a warning from the previous map: (I checked and "bookcase" does not exist on the new map.)
Code: [Select]
Error: In on_removed: [string "maps/chain_village/zark_house.lua"]:17: attempt to index global 'bookcase' (a nil value)
Please note: I did not remove the bookcase and it does the same thing when I tested it with a chest entity.

Code: ( lua) [Select]
function slime:on_removed()   
    if not chest:is_open() then"secret")

Code: [Select]
Error: In on_removed: [string "maps/chain_village/zark_house.lua"]:21: attempt to index global 'chest' (a nil value)

I get around the warning by using a save variable.

Code: ( lua) [Select]
  function slime:on_removed()
    if not game:get_value("zark_house_enemy_defeated") == true then
    if not game:get_value("zark_house_enemy_defeated") == true then
      if not chest:is_open() then"secret")


Bugs & Feature requests / [Solved]door function issue?
« on: July 26, 2018, 09:15:29 am »
Version: Solarus 1.5.3
OS: Linux

This might be a bug?

I tried using door:on_opened(), but it seems to not be working. I double checked the name and everything. This function is called during an opening of a door, right?

Code: ( lua) [Select]
function door_1:on_opened()
  print("opened door")
  hero:teleport("chain_village/underground_miniboss", "boss_destination", "fade")

The same occurred with door:is_open(). The door is indeed open, but nothing happens.

Code: ( lua) [Select]
sol.timer.start(1000, function()
  if door_1:is_open() == true then
    hero:teleport("chain_village/underground_miniboss", "boss_destination", "fade")
  return true

The function door:is_opening() worked.

Code: ( lua) [Select]
sol.timer.start(1000, function()
  if door_1:is_opening() == true then
    hero:teleport("chain_village/underground_miniboss", "boss_destination", "fade")
  return true

Development / [Solved]Pass multiple entities?
« on: July 22, 2018, 01:14:15 am »
Would it be possible to pass more than one entity through a method?

For example,
Code: ( lua) [Select]
Code: ( lua) [Select]

Development / [Solved]Bomb overlap assistance
« on: July 21, 2018, 09:58:18 am »
Okay, I want an entity to be disabled when a bomb is placed on it. I am guessing that it is not working because the bomb is not created before the start of the map.
Code: ( lua) [Select]
--bomb test
sol.timer.start(1000, function()
    if bomb_1:overlaps(test) then
  return true  -- To call the timer again (with the same delay).

Code: [Select]
Error: In on_started: [string "maps/soulia_forest/soulia_forest.lua"]:57: attempt to index local 'bomb_1' (a nil value)

Development / [Solved]Timer problem
« on: July 16, 2018, 12:00:52 am »
I have a problem with my script. The switches are suppose to reset after 5 seconds when they are all activated. They do reset, but the one second timer is already running through again and I cannot activate any switches for another 5 seconds.

Code: ( lua) [Select]
function map:on_started()

  sol.timer.start(1000, function()
    if solid_1:is_activated() == true and solid_2:is_activated() == true and solid_3:is_activated() == true and solid_4:is_activated() == true then
      sol.timer.start(5000, function()
    return true


Game art & music / Project Heroine Sprites
« on: July 11, 2018, 04:13:51 am »
I am showing off the sprites I mentioned in the Female Character Hairstyles topic. So far I got the front, back, and side views finished, but I still need to modify the sprites colors + make the other animations.

These sprites are based off of the Eldrina Sprite I made. Eldrina is a mod of Diarandor's Eldran v1.1 Sprite. This sprites project would not even exist if it was not for Diarandor and I am thankful for his amazing art that just keeps getting better.

Project Heroine Sprites: (Login to view)

For history purposes: Plexa

General discussion / A funny thing about forums
« on: July 04, 2018, 01:21:36 am »
A lot of messager services were discontinued, but a space for them still exist on forums. I found it odd that there is no option to just add the type of service one uses.

AOL Instant Messenger (Discontinued (December 15, 2017)) Wiki
MSN Messenger (Discontinued, 2013) Wiki

Still Exist:

Bugs & Feature requests / Forum: Storage Full
« on: July 03, 2018, 12:58:00 am »
The upload folder is full. Please try a smaller file and/or contact an administrator.

My file was 1.4 KB

Should we go through our attachments and free up storage?

Game art & music / Gimp Script: deep-float-copy
« on: July 03, 2018, 12:37:33 am »
Okay, I decided to put the deep-float-copy script in this section because it is related to Gimp. Feel free to move it.

The deep-float-copy script is something I found online, but it was broken for gimp 2.8, so I fixed it. Gimp still has not improved its layers as far as I know.

It is useful for copying link layers that are selected. Make sure to select the area of the linked layers or a few error messages will appear. The preview below shows the character being selected. Float Linked Layers (Copy) will instantly copy all the linked layers.

Linux: Put it in /home/YourName/.gimp-2.8/scripts

Image Example + sneak peak:

Download (Login to download)
Alternative Download

Bugs & Feature requests / Site link not working: Tunics Wiki
« on: June 27, 2018, 08:13:05 pm »
Solarus Website > Games > By the community > Tunics!

It seems the Tunics DokuWiki no longer exists, but it can still be seen on WaybackMachine.

Game art & music / Female character hairstyles
« on: May 13, 2018, 07:24:22 am »
Hi everyone,

It has been awhile.

I am making a bunch of free female characters. I am wondering if I missed a major hair style?

Ponytail is covered by the way...just have not made the view points. Also, I aware that overlaying the styles can make new ones.


General discussion / [Debug] Pokemon Original Games
« on: June 18, 2017, 07:13:28 am »
I thought this video was interesting. It could help a game creator to think of ways to prevent bugs that pros made in the past.

In my opinion, key items will prevent these bugs from occurring for quests.

General discussion / 19 transitions
« on: May 18, 2017, 10:37:10 am »
I made many transitions in Gimp from scratch. I still have some tweaking to do, but I plan to have these 320x240 transitions setup as animations. Of course, I plan to have these as CC0, so they will be free for any usage.

What does everyone think? Did I miss any basic transition?

Gimp Playback Previews:

Development / [Solved]Screen vs entity position?
« on: May 15, 2017, 01:51:17 pm »
Is there a formula I could use to calculate screen image x,y coordinates to the entity position? For example, drawing an image at the hero. I am not sure that entity:get_position() is related to this because is not that position different than image x,y coordinates?

Pages: [1] 2 3 ... 6