Recent Posts

Pages: 1 [2] 3 4 ... 10
Development / Assign argument variables in function parameter?
« Last post by zutokaza on May 16, 2017, 07:20:13 am »
How would I do something like this?

Code: Lua
  1. function test(a = 5, b = "hey", c = true)
  2.   if a == 5 then
  3.     print("Letter A is",a)
  4.   end
  5. end
  7. test()

I know it can be done like this:

Code: Lua
  1. function test(a, b, c)
  2. a = 5
  3. b = "hey"
  4. c = true
  5.   if a == 5 then
  6.     print("Letter A is",a)
  7.   end
  8. end
  10. test()
Development / [Solved]Screen vs entity position?
« Last post by Zefk on May 15, 2017, 05:27:31 pm »
That was the first thing I tried because I saw it in the Children of Solarus game_over.lua script. It seems I forgot to repeat my timer when checking my script, so a mistake on my part. Thank you Christopho and Zutokaza for the assistance. My script works perfectly now.
General discussion / Re: Tunics id that impact the player stats ?
« Last post by MetalZelda on May 15, 2017, 05:10:02 pm »
I can make all of Eldran's custom animations, I just need a higher resolution of it for both male and female version, for the menu paperdoll, like this

for the tunic colors, just let me know which one you want for Eldran, I have a color palette swapping tool.
Anyway, thank you for letting Eldran be a skin for Link in my project, I highly appreciate it  :)

these are all characters skin planned as for now.

(Yes, i was forced to change my Github account, I changed my phone number and the account was protected by a 2 way authentification, I forgot to download recovery code as well)
Development / Re: Screen vs entity position?
« Last post by Christopho on May 15, 2017, 05:08:27 pm »
entity:get_position() give coordinates relative to the map. You can find coordinates relative to the screen if you just subtract the camera position.
Development / Re: Screen vs entity position?
« Last post by zutokaza on May 15, 2017, 04:32:51 pm »
I think getting the position of the entities with entity:get_position() only works for drawing if your map is 320 x 240. It has to be the same as the quest size.

I am not really sure how to solve this. There might need to be drawing checks as the map scrolls. Some calculations would work until the hero starts in a location where the map scrolls.

Maybe @Diarandor or Christopho knows?
General discussion / Re: Tunics id that impact the player stats ?
« Last post by Diarandor on May 15, 2017, 01:54:44 pm »
Unlocking heroes is a cool idea. You could make sidequests to help these heroes and, after completion, unblock them (I guess that was your idea). The remaining Eldran sprites will be ready in 2 months (this month I am too busy at work). If you need some new animations for your new weapons (ocarina, shovel, etc), just tell me to do them. I think it is good to have Eldran in your game, for "advertising" purposes and make him famous :)
Development / [Solved]Screen vs entity position?
« Last post by Zefk 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?
General discussion / Tunics id that impact the player stats ?
« Last post by MetalZelda on May 15, 2017, 12:09:02 pm »

I've planned some things with my project which include Link skins.
By skins, i already planned

- Regular Link (Parallel Worlds skin)
- ALTTP Link
- AST Female Link
- AST Male Link
- Eldran (Male / female)

With this idea come the thing of giving stats to the player, such as

- Normal for regular Link (1 attack, 1 defence)
- Defensive for Female Link (0.5 attack, 2 defence)
- Attacks for Male Link (2 attack, 0.5 defence)
- Damage and Defence for ALTTP Link (2 attack, 2 defence)
- Still not decided for Eldran (maybe attack, defence, speed and swim ability)

Starting stats are 1 attack / 1 defence, of course, abilities (sword / shield) will modify these values

What do you all think of this ? Do you think that this could be something useful ?
Of course, the skins will need to be unlocked by doing quests or depending on the progression the player made
Game art & music / Re: Mouhitotsu no Takarajima
« Last post by ffomega on May 15, 2017, 11:06:21 am »
yeah everything is fine, 000webhost decided to update their site.  Their instructions were very vague and you can't even message them directly without paying membership fees.  Chris was kind enough to give me space on the solarus-games server so don't worry :) a backup of my site was made weeks prior to the update.  As a result of 000webhost however, I was given no choice but to delete the entire site from their server.  I apologize for the inconvenience, and will redirect you to the new link.
Development / [Solved]Array in function?
« Last post by Zefk on May 15, 2017, 06:20:41 am »
Solved it.

Code: Lua
  1.   local sprites = sprites[index]
  3.   function sprites:on_animation_finished()
  4.     sprites:set_animation(end_anime)
  6.   end
Pages: 1 [2] 3 4 ... 10