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.

Messages - YoshiMario2000

Pages: [1] 2 3 ... 6
Is it my phone or the movement is not completely smooth? (I do not have internet at home now to check this.)
No, It's also choppy on my PC.

Bugs & Feature requests / Re: Pixel ratio Limitations?
« on: July 07, 2018, 05:47:12 am »
The position of the collision box is based upon where the origin of the sprite is.

Should be. For a while, I was running solarus on a Chromebook. (acer c720 for those who care)

Development / Re: Using chest to open a door
« on: March 06, 2018, 11:36:49 pm »
Your usage of arguements in the function is incorrect.

The way defining functions work in lua (And in most if not all programming languages with some differences) is the section within the parentheses are variable only accessible from within the function.
So instead what you would want to do is something like this:

Code: Lua
  1. function clothes_chest:on_opened(treasure_item, treasure_variant, treasure_savegame_variable)
  2.   map:get_hero():start_treasure(treasure_item, treasure_variant, treasure_savegame_variable, function() -- The function here is to indicate an event happens after receiving an item
  3.     map:open_doors("exit_door")
  5.   end)
  6. end

Development / Re: Issue with doors
« on: September 23, 2017, 05:01:36 pm »
You need to have multiple directions for the sprite or simply just set the door's direction to the right.

General discussion / Re: An example of the Engine.
« on: July 29, 2017, 03:41:44 am »
Very nice :) Do you plan on making a fully-functional engine using LttP-like items?
Eventually, once I can pull myself away from other projects and look back at this one.

Here is a link to the data files;
Although be warned, its in a very clearly development test stage and should be treated as such.

Although the video is a far earlier build of what I currently have, I haven't really touched much of the data in the past few months. (Primarily because I got myself messing about with team fortress 2 and the hammer world editor.)

Development / Re: How does the overworld map menu work?
« on: July 16, 2017, 06:35:32 am »
When drawing out a map, at least for me, I use a base of 16 by 16, and cut said tiles in half for 8 by 8. This will mach up nicely with the tiles of one's map.
So, a 320 by 240 map will have a base 16 grid of 20 by 15.

Development / Re: Item command held on item?
« on: June 19, 2017, 07:09:01 pm »
What you'll probably want to do is create a timer (or a set of timers) that count for how long you want the difference of time between the instances of charge.

So doing something like this:
Code: Lua
  1. -- At beinging of code
  2. local timer = nil
  4. --  Code before timers
  5. local function start_timer()
  6.   timer = sol.timer.start(item, 1000, function()
  7.     --code relating to when timer reaches max time
  8.   end) -- This timer lasts 1 sec and belongs to "context" item if defined. To increase the time, change the 2nd value to desired time in milliseconds.
  10. end
  12. local function end_timer()
  13.   local time_remaining = timer:get_remaining_time()
  14.   --code relating to translating time into charge
  15.   --I.E. Total charge value / (time_remaining * -1)
  16.   --return charge_strength
  17. end

See for more details relating to timers.

For checking if the item is being held down, I would look to these sets of events:

Development / blend modes
« on: March 13, 2017, 02:23:49 am »
So I was working on a new light_manager script for my quest, but I've run into an issue with (what I think is) an engine limitation.
I'm trying to get it so that one surface applies to another while inverting it's alpha channel content (Opaque becomes transparent and transparent becomes Opaque). I'd write an algorithm myself in lua, but It would seem (Unless I'm missing something), that this is impossible for the moment.

Development / Re: Count how many file exists with a certain prefix ?
« on: March 12, 2017, 10:35:00 pm »
Well, my advice is to only load the visible files in the menu when required to show them (i.e. a scrolling menu where only three are shown at a time.), store the variable that you need into a list with in a list (arrays work too). This should spread out the load time to when the user attempts to access the other files additional files. Also, you should probably make it so that it sorts by most recently saved. Most users are not going to touch their old saves unless they want to show off their progress or just mess with it.

You could also attempt to use
Code: Lua
  1. local game_var = require("path/to/save/data.dat")

But don't know if that will work.

General discussion / An example of the Engine.
« on: March 11, 2017, 11:57:40 pm »
So I decided to do a test of the engine. Here are the results.

The asssets (referring to graphics and music) used in this are ffomega's Hyrule map pack, some custom made sprites, some edits of sprites from alttp, and the remainder are just from ZSDX.

Code is mostly custom made but is based off the code from ZSDX and zelda ROTH SE.

Game art & music / Re: Requesting
« on: March 11, 2017, 04:36:23 pm »
Try searching here if you want minish cap tiles,
Great site for finding sprites and tiles of different games.

Also, house tiles can be found in ffomega's Full Hyrule tileset, which can be found at,881.0.html

Also, since the topic of errors has been brought up again, I would like to point out this tileset error in all of the dungeon tilesets.
Which should look like,
The red circle highlighting the issue. The outer corner lower cave walls use the incorrect tiling from the walls. (using the middle tile layer instead of the bottom.)

Development / Re: Separator_on_activated direction4
« on: February 14, 2017, 11:44:45 pm »
Like Diarandor said, direction4 is a variable, here is how to use it. (This was typed before Diarandor's post had appeared.)

The function of separators "on_activated(direction4)" The information in the brackets are defined when they are called and should be stored in a variable like so:
Code: Lua
  1. function generic_separator:on_activated(direction4)
  2.   if direction4 == 3 then
  3.   -- Your code here
  4.   end
  5. end
The reason this works is because when the engine calls this function, it stores the argument that you may need for a script in the variable.

However, one cannot have what they want the call back to be done like so,
Code: Lua
  1. function generic_separator:on_activated(3)
  2.   --Your code here
  3. end
This does not work as putting the number three in the variable slot will produce an error as that slot is not for defining what you want that information to be, but rather for a variable that may change.

Game art & music / Re: Game Over animation
« on: February 02, 2017, 11:18:58 pm »
The animation has an almost Castlevania vibe to it. Still see the potential for usage though.

Pages: [1] 2 3 ... 6