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 ... 5
1
Your projects / Allied AI Script Project Alpha
« on: April 17, 2017, 01:55:54 am »
Allied AI Project Alpha

I recently started working on a Allied AI script while working on the book project. I am panning only 2 allies like in Secret of Mana (Seiken Densetsu 2).

Finished: (All lag is due to bad gifs, the Solarus engine runs fine)
  • Basic Follower Script - The Ally custom entity follows the hero and when the ally gets stuck (hit an obstacle), it searches for the hero.

I seriously cannot believe at how easy this is to program. Thank you Christopho for the amazing functions.


Not finished:
  • Melee
  • Projectiles
  • Custom Entity Enemy
  • Enemy

2
Game art & music / Female Eldran
« on: April 11, 2017, 04:24:12 pm »
I finished some animations I needed for a female Eldran. This female version will be in the chain quest for the book project.

@Diarandor
What should her name be?

Animations:
-carrying_stopped
-carrying walking
-dead
-dying
-grabbing
-hurt
-lifting
-pulling
-pushing
-stopped
-sword
-throw
-walking
-spin_attack
-sword_tapping
-sword_loading_stopped
-sword_loading_walking


Note: The gifs are slow






eldran.png


eldran_grabbing.png


eldran_miscellaneous.png


eldran_sword_brandish.png


eldrina_spin_attack.png


eldrina_sword_loading.png


eldrina_sword_tapping.png

3
Development / (Solved)How is a super spin attack setup?
« on: March 26, 2017, 04:56:10 am »
I know the following ability is needed for a super spin attack, but which animations? I kinda wish there was an error message for this.

Code: Lua
  1.     game:set_ability("sword_knowledge", 1)

4
Bugs & Feature requests / Run Ability bug?
« on: March 25, 2017, 10:33:28 pm »
The error involves jumping and the run ability. For example, if I try to run into jumpers or when the ability "jump_over_water" is set.

Code: [Select]
[Solarus] [
5350] Fatal: Invalid frame 1: this direction has 1 frames

I attached an image.


5
Your scripts / A List of Scripts around the Forum
« on: January 09, 2017, 01:19:53 am »
About:
This was on the, "The Solarus Resource Help Project," but that post reached its limit. I hope no one minds me dropping the scripts scattered around the forum here. I will add to this list as I find new scripts.

Scripts:
Example menu script information by llamazing: here

NPC movement paths and obstacle detection: Here

Solarus Tower Defence Style by Kibos1er! Preview and Download

Changing the hero sprite. Here

Platformer or Side Scrolling functionality by wrightmat! New fully working version with ladder functionality for Solarus 1.5: Here or sample

Old version of Platformer or Side Scrolling functionality by wrightmat! Here and Zutokaza's test  - As I can see there are bugs to work out because of new updates to the Solarus Engine probably.

A project by MetalZelda! Has a lot of good scripts. Here

A project by Wrightmat! Has a lot of excellent scripts. Here

A clever hack for disabling the charged sword attack. Here

ARPG game Scripts by Christopho and his team! Here
-Click the game and at the bottom will be the source code that can be used as a template.

Controlling the Hero with an AI Script: Here

Companion Script: Here

Blend modes: Here

Work in progress for a General Ally script: here

Fog script and map name display: Here

An article on programming video game gravity. Here

A debug script: Here

Change state Super Saiyan example: Here

Line of sight enemy hero detection: Here

Level up code: Here

Scripts to allow custom jump over custom teletransporters: Here

Variable in dialog: Here

Displaying text on the screen to a certain position: Here

Grab place values of a variable: Here

Grab char in a string: Here

Clicking the screen with your mouse: Here

Get mouse coordinates and click an image around the screen: here

Dragging an image with the mouse cursor: Here

Menu example by llamzing: Here

Module example by llamazing and others: Here

Displaying text on the screen: Here

Adding text to a txt file: here and here

Adding multiple lines of text to a txt file and remove them: Here

Adding text and values to a save file: here

Fade in/out example: Here

Overwriting an array list of string text drawn arrays: Here

Custom sword item script: Here

Animated sprites for dialogs (custom dialog script): Here

Tech Demo using Cythera style interactive dialogs: Here

Diarandor's Rain Script: Here (He plans to update it, so..you might have to search for the new one until I update this post.)

Change sword variant: Here

Custom entity switch: Here

Moving camera: Here

Color commands for Christopho's dialog_box.lua: Here

Zolarus Chripora Script Pack - Pseudocode like code in progress

6
Game art & music / Random Free Art
« on: December 31, 2016, 10:42:07 am »
Pixel art: Switches, crystals, crystal blocks, and star sparkles (CC0)

I made these just now. I needed them for the book project. Free to use under CC0. The dat files are in the zip.

Edit: Fixed some errors.

(Login to view):











7
General discussion / Merry Christmas!
« on: December 26, 2016, 12:13:49 am »
Have a great day everyone! Merry Christmas!

8
Development / Question on "blend"
« on: December 22, 2016, 12:05:41 am »
I am a bit confused. The mode "blend" looks no different than any other image.


Code: Lua
  1.    
  2.     --This drawable object is alpha-blended onto the destination surface
  3.     blend_red_img:draw(screen,100,200)
  4.     blend_red_img:set_blend_mode("blend")
  5.  
  6.     blend_green_img:draw(screen,100,200)
  7.     blend_green_img:set_blend_mode("blend")
  8.  
  9.     blend_blue_img:draw(screen,100,200)
  10.     blend_blue_img:set_blend_mode("blend")
  11.  

It looks like this: (Unless the alpha is at 255)



I thought it was suppose to be like this:

9
Bugs & Feature requests / Alttp Dialog box + sample quest bug
« on: December 14, 2016, 05:47:08 pm »
The mouse contol function seems to make the alttp dialog box script not work.

This function is the issue. The alttp dialog box works without it.
Code: Lua
  1.   function game:on_started()
  2.     -- HUD menu.
  3.     local hud = require("scripts/menus/hud")
  4.     sol.menu.start(game, hud)
  5.     hud:create(game)
  6.  
  7.     -- Mouse control.
  8.     local mouse_control = require("scripts/menus/mouse_control")
  9.     sol.menu.start(game, mouse_control)
  10.     mouse_control:create(game, hud)
  11.  
  12.     local hero = game:get_hero()
  13.     hero:set_tunic_sprite_id("main_heroes/eldran")
  14.   end

Full code:
Code: Lua
  1. require("scripts/menus/alttp_dialog_box")
  2. local game_manager = {}
  3.  
  4. -- Starts the game from the given savegame file,
  5. -- initializing it if necessary.
  6. function game_manager:start_game()
  7.  
  8.   local exists = sol.game.exists("save1.dat")
  9.   local game = sol.game.load("save1.dat")
  10.   if not exists then
  11.     -- Initialize a new savegame.
  12.     game:set_max_life(12)
  13.     game:set_life(game:get_max_life())
  14.     game:set_ability("lift", 2)
  15.     game:set_ability("sword", 1)
  16.     game:set_starting_location("first_map") -- Starting location.
  17.   end
  18.  
  19.   function game:on_started()
  20.     -- HUD menu.
  21.     local hud = require("scripts/menus/hud")
  22.     sol.menu.start(game, hud)
  23.     hud:create(game)
  24.  
  25.     -- Mouse control.
  26.     local mouse_control = require("scripts/menus/mouse_control")
  27.     sol.menu.start(game, mouse_control)
  28.     mouse_control:create(game, hud)
  29.  
  30.     local hero = game:get_hero()
  31.     hero:set_tunic_sprite_id("main_heroes/eldran")
  32.   end
  33.   game:start()
  34.  
  35.   local hero = game:get_hero()
  36.   hero:set_tunic_sprite_id("main_heroes/eldran")
  37. end
  38.  
  39. return game_manager

10
Your projects / Inventory Sneak Peek
« on: December 09, 2016, 06:17:32 pm »
This is an inventory I am working on. I plan to add 15 sections for different types of equipment (weapons, heal items, etc) and the ability to change item places.

Preview: (Lag from missing frames to speed up gif, not a script problem)


 

11
Your scripts / Time System Script + Clock + Day Night Cycle
« on: December 04, 2016, 12:05:25 am »
About:
This is a time system script I did yesterday. I would not call it advanced, but it is pretty good.

Download demo:
Time System
Time System Day Night Cycle


Features:
1.Use bitmaps(png,etc) for clock
2.Use of sol.text_suface for font packages (Any Solarus compatible font package you want)
3.Able can change months, seasons, and days. EX: Pumpkin day!
4.The ability to easily change the text and coordinates of the text in the, "CHANGE SETTINGS AREA:".
5.Able to change the speed. Change time.timer = 1000 (1 second) to a lower number
6.Easy to change! Go down to the comment, "CHANGE SETTINGS AREA:" at the beginning of the script.
7.A RGB color reference comment list at the end of the script
8.The ability to easily change the font in, "CHANGE SETTINGS AREA:."
9.Easily change the font color in, "CHANGE SETTINGS AREA:." Uses RGB color, so check the reference list at the end of the script.
10.Easily change the font size in, "CHANGE SETTINGS AREA:."
11.Day night cycle

YouTube Preview:
Time System

Gif Preview:


12
Your projects / Time System sneak peek
« on: December 03, 2016, 07:23:54 am »
This is my time system that I worked on today. It is almost done!


13
Bugs & Feature requests / Help test..Solarus crashes during audio playing
« on: November 28, 2016, 08:40:51 pm »
About:
My script crashes Solarus when playing music. Everything is fine on the first page, but on the second page it crashes, but not always. Sometimes some of the music slots work and other times it just crashes. The script is almost done, but this is a problem...

I tried a variety of tests. It could be a Solarus bug, wine issue, or my script.

Crash in gif:


Demo Project Link:
Download

Jam Station Script:
Code: Lua
  1. ---------------------------------------------------------------------------------------------------------
  2. --Tell the script it is a map and to use game functions
  3. local game = ...
  4.  
  5. --A table because I like tables and it prevents upvalue errors
  6. local jam = {
  7.      
  8.       y_pos = {},
  9.       x_pos = {},
  10.       y_font_pos = {},
  11.       x_font_pos,
  12.       y_pos_wheel = 0,
  13.       scroll_distance,
  14.       page_wheel_down_cal,
  15.  
  16.       bg = {},
  17.       bg_hover = {},
  18.  
  19.       m_r_bg_img = sol.surface.create("jam_station/bg/M_R_bg.png"),
  20.       text_bg_img = sol.surface.create("jam_station/bg/text_bg.png"),
  21.       text_bg_hover_img = sol.surface.create("jam_station/bg/text_bg_hover.png"),
  22.        
  23.       scroll = {},
  24.  
  25.       scrolling_wheel_img = sol.surface.create("jam_station/scrollbar/scrolling_bar.png"),
  26.       scroll_bar_arrows_img = sol.surface.create("jam_station/scrollbar/scroll_bg_bar_arrows.png"),
  27.  
  28.       volume ={},
  29.  
  30.       b_0_percent_img = sol.surface.create("jam_station/volume/0_percent.png"),
  31.       b_25_percent_img = sol.surface.create("jam_station/volume/25_percent.png"),
  32.       b_50_percent_img = sol.surface.create("jam_station/volume/50_percent.png"),
  33.       b_75_percent_img = sol.surface.create("jam_station/volume/75_percent.png"),
  34.       b_100_percent_img = sol.surface.create("jam_station/volume/100_percent.png"),
  35.       percent_bg_img = sol.surface.create("jam_station/volume/percent_bg.png"),
  36.  
  37.       audio_slot_1 = {},
  38.       audio_slot_2 = {},
  39.       audio_slot_3 = {},
  40.       audio_slot_4 = {},
  41.       audio_slot_5 = {},
  42.       audio_slot_6 = {},
  43.       audio_slot_7 = {},
  44.       audio_slot_8 = {},
  45.       page = {},
  46.       next = 0,
  47.       audio_name = {},
  48.       font,
  49.       font_size,
  50.       color_type,
  51.       audio_text = {},
  52. }
  53.  
  54. -----------------------
  55. --CHANGE SETTINGS AREA:
  56. -----------------------
  57.  
  58. --Number of text spots or slots
  59. local text_num = 7
  60.  
  61. --Audio amount starting at 0, so 1 is actully 2 sorta
  62. local audio_amount = 1
  63.  
  64. --Drawing basic images on stript start
  65. jam.volume[1] = true
  66. jam.volume[2] = true
  67. jam.scroll[1] = true
  68. jam.scroll[2] = true
  69.  
  70. --max distance the scroll wheel can go down
  71. jam.scroll_distance = 344
  72.  
  73. --Divide the distance with pages
  74. jam.page_wheel_down_cal = 1
  75.  
  76. --Change the font package
  77. --Leave it nil to use the Solarus team made bitmap font. (At least in this demo or if you have it in your project.)
  78. --name_list.font = nil
  79. jam.font = "minecraftia"
  80.  
  81. --Change font size
  82. jam.font_size = 12
  83.  
  84. --Change color. It was set to snow white (Not white 255,255,255, but snow white 255,250,250. Yeah, they are different.)
  85. --Check in of script for some RGB color values.
  86. jam.color_type = {188,143,143} --139,0,139
  87.  
  88. -----------------------------
  89. --END OF CHANGE SETTINGS AREA
  90. -----------------------------
  91.  
  92. function sol.main:on_draw(screen)
  93.  
  94. --Text properties and name string loading
  95. for rep = 0,text_num do
  96.      jam.audio_text[rep] = sol.text_surface.create({
  97.       font = jam.font,
  98.       text = jam.audio_name[rep],
  99.       font_size = jam.font_size,
  100.       color = jam.color_type,
  101.     })
  102. end
  103.  
  104. --Clear or reset 0-7
  105. jam.audio_name = {}
  106.  
  107. --show this text on pae 1
  108. if jam.page[0] == true then
  109. jam.page[1] = false
  110. jam.audio_name[0] = "Klgo Journey Path"
  111. jam.audio_name[1] = "Beautiful Sadness"
  112. jam.audio_name[2] = "Darkness"
  113. jam.audio_name[3] = "Dark Void"
  114. jam.audio_name[4] = "Dungeon Enemy of Blues"
  115. jam.audio_name[5] = "Dungeon of Crepelody"
  116. jam.audio_name[6] = "Klgo Journey Menu"
  117. jam.audio_name[7] = "Mystic Flute"
  118. end
  119.  
  120. --Show this text on page 2
  121. if jam.page[1] == true then
  122. jam.page[0] = false
  123. jam.audio_name[0] = "Open Chest"
  124. jam.audio_name[1] = "The Unknown Danger"
  125. jam.audio_name[2] = "You are Chosen"
  126. jam.audio_name[3] = "Bonus Piano"
  127. jam.audio_name[4] = "Random sound effect_1"
  128. jam.audio_name[5] = "Random sound effect_2"
  129. jam.audio_name[6] = "Random sound effect_3"
  130. jam.audio_name[7] = "Random sound effect_4"
  131. end
  132.  
  133. --Testing
  134. print("0 is",jam.audio_name[0])
  135. print("0 is",jam.audio_name[1])
  136. print("0 is",jam.audio_name[2])
  137. print("0 is",jam.audio_name[3])
  138. print("0 is",jam.audio_name[4])
  139. print("0 is",jam.audio_name[5])
  140. print("0 is",jam.audio_name[6])
  141. print("0 is",jam.audio_name[7])
  142.  
  143. --Background image
  144.   if jam.bg[1] == true then
  145.     jam.m_r_bg_img:draw(screen)
  146.   end
  147.  
  148. --Text, hover slot image, and background slot images
  149. for i = 0,text_num do
  150.   if jam.bg[2] == true then
  151.     jam.text_bg_img:draw(screen, jam.x_pos[i], jam.y_pos[i])
  152.     jam.audio_text[i]:draw(screen,jam.x_font_pos,jam.y_font_pos[i])
  153.   end
  154. end
  155.  
  156. for i = 0,text_num do
  157.   if jam.bg_hover[i] == true then
  158.     jam.text_bg_hover_img:draw(screen, jam.x_pos[i], jam.y_pos[i])
  159.     jam.audio_text[i]:draw(screen,jam.x_font_pos,jam.y_font_pos[i])
  160.   end
  161. end
  162.  
  163. --Scroll bar
  164.   if jam.scroll[1] == true then
  165.     jam.scroll_bar_arrows_img:draw(screen)
  166.   end
  167.  
  168.   if jam.scroll[2] == true then
  169.     jam.scrolling_wheel_img:draw(screen,0,jam.y_pos_wheel)
  170.   end
  171.  
  172. --Volume images
  173.   if jam.volume[1] == true then
  174.     jam.percent_bg_img:draw(screen)
  175.   end
  176.  
  177.   if jam.volume[2] == true then
  178.     jam.b_100_percent_img:draw(screen)
  179.   end
  180.  
  181.   if jam.volume[3] == true then
  182.     jam.b_75_percent_img:draw(screen)
  183.   end
  184.  
  185.   if jam.volume[4] == true then
  186.     jam.b_50_percent_img:draw(screen)
  187.   end
  188.  
  189.   if jam.volume[5] == true then
  190.     jam.b_25_percent_img:draw(screen)
  191.   end
  192.  
  193.   if jam.volume[6] == true then
  194.     jam.b_0_percent_img:draw(screen)
  195.   end
  196.  
  197. --Page is true or false depending on up or down arrows.
  198. for rep = 0, audio_amount do
  199.   if jam.next == rep then
  200.     jam.page[rep + 1] = false
  201.     jam.page[rep] = true
  202.     jam.page[rep - 1] = false
  203.   end
  204. end
  205.  
  206. end --end of draw function
  207.  
  208. --Image and text coordinate changes and drawing background or UI mostly
  209.  for i = 0,text_num do
  210.    jam.bg[i] = true
  211.    jam.x_pos[i] = 0
  212.    jam.y_pos[i] = i * 50
  213.  
  214.    jam.x_font_pos = 150
  215.    jam.y_font_pos[i] = i * 50 + 50
  216.  end
  217.  
  218. function sol.main:on_key_pressed(key)
  219. ---will be used to close everything
  220. end--end of key press function
  221.  
  222. function sol.main:on_mouse_pressed(button,x,y)
  223.  
  224. --Volume control
  225. --volume 100%
  226.   if button == "left" then
  227.     if (x > 466 and x < 492) and (y > 61 and y < 134) then
  228.       print("left pressed")
  229.       jam.volume[1] = true
  230.       jam.volume[2] = true
  231.       jam.volume[3] = false
  232.       jam.volume[4] = false
  233.       jam.volume[5] = false
  234.       jam.volume[6] = false
  235.       sol.audio.set_music_volume(100)
  236.     end
  237. --volume 75%
  238.     if (x > 466 and x < 492) and (y > 135 and y < 246) then
  239.       print("left pressed")
  240.       jam.volume[2] = false
  241.       jam.volume[3] = true
  242.       jam.volume[4] = false
  243.       jam.volume[5] = false
  244.       jam.volume[6] = false
  245.       sol.audio.set_music_volume(75)
  246.     end
  247. --volume 50%
  248.     if (x > 466 and x < 492) and (y > 247 and y < 360) then
  249.       print("left pressed")
  250.       jam.volume[2] = false
  251.       jam.volume[3] = false
  252.       jam.volume[4] = true
  253.       jam.volume[5] = false
  254.       jam.volume[6] = false
  255.       sol.audio.set_music_volume(50)
  256.     end
  257. --volume 25%
  258.     if (x > 466 and x < 492) and (y > 360 and y < 430) then
  259.       print("left pressed")
  260.       jam.volume[2] = false
  261.       jam.volume[3] = false
  262.       jam.volume[4] = false
  263.       jam.volume[5] = true
  264.       jam.volume[6] = false
  265.       sol.audio.set_music_volume(25)
  266.     end
  267. --volume 0%
  268.     if (x > 466 and x < 492) and (y > 431 and y < 451) then
  269.       print("left pressed")
  270.       jam.volume[2] = false
  271.       jam.volume[3] = false
  272.       jam.volume[4] = false
  273.       jam.volume[5] = false
  274.       jam.volume[6] = true
  275.       sol.audio.set_music_volume(0)
  276.     end
  277.  
  278. --Up arrow
  279.     if (x > 437 and x < 458) and (y > 18 and y < 40) then
  280.       print("up pressed")
  281. --Distance calculations for the scroll wheel
  282.       if jam.y_pos_wheel > 0 then
  283.         jam.y_pos_wheel = jam.y_pos_wheel - jam.scroll_distance/jam.page_wheel_down_cal
  284. --Calculations for the page
  285.         jam.next = jam.next - 1
  286.       end
  287.     end
  288. --down arrow
  289.     if (x > 437 and x < 458) and (y > 441 and y < 463) then
  290.       print("down pressed")
  291. --Distance calculations for the scroll wheel
  292.       if jam.y_pos_wheel <= jam.scroll_distance then
  293.         jam.y_pos_wheel = jam.y_pos_wheel + jam.scroll_distance/jam.page_wheel_down_cal
  294. --Calculations for the page
  295.         jam.next = jam.next + 1
  296. --Sets the image for the scroll wheel. Do not want it to go off the screen.
  297.         if jam.y_pos_wheel > 344 then
  298.           jam.y_pos_wheel = 344
  299.         end
  300.       end
  301.     end
  302.  
  303. for rep = 0, audio_amount do
  304. --Pages
  305.  if jam.page[rep] == true then
  306. --spot 1
  307.     if (x > 133 and x < 425) and (y > 41 and y < 69) then
  308. --Slots true or false depending on the page
  309.       jam.audio_slot_1[rep + 1] = false
  310.       jam.audio_slot_1[rep] = true
  311.       jam.audio_slot_1[rep - 1] = false
  312. --Play music in the first slot depending on which page
  313.       if jam.audio_slot_1[rep] == true then
  314.         sol.audio.play_music("zane_kukta_music/slot_1/"..rep)
  315.       end
  316. --Hover image true
  317.       jam.bg_hover[0] = true
  318.     else
  319. --Hover image false
  320.       jam.bg_hover[0] = false
  321.     end
  322.  
  323. --spot 2
  324.     if (x > 133 and x < 425) and (y > 91 and y < 119) then
  325. --Slots true or false depending on the page
  326.       jam.audio_slot_2[rep + 1] = false
  327.       jam.audio_slot_2[rep] = true
  328.       jam.audio_slot_2[rep - 1] = false
  329. --Play music in the first slot depending on which page
  330.       if jam.audio_slot_2[rep] == true then
  331.         sol.audio.play_music("zane_kukta_music/slot_2/"..rep)
  332.       end
  333. --Hover image true
  334.       jam.bg_hover[1] = true
  335.     else
  336. --Hover image false
  337.       jam.bg_hover[1] = false
  338.     end
  339.  
  340. --spot 3
  341.     if (x > 133 and x < 425) and (y > 141 and y < 171) then
  342. --Slots true or false depending on the page
  343.       jam.audio_slot_3[rep + 1] = false
  344.       jam.audio_slot_3[rep] = true
  345.       jam.audio_slot_3[rep - 1] = false
  346. --Play music in the first slot depending on which page
  347.       if jam.audio_slot_3[rep] == true then
  348.         sol.audio.play_music("zane_kukta_music/slot_3/"..rep)
  349.       end
  350. --Hover image true
  351.       jam.bg_hover[2] = true
  352.     else
  353. --Hover image false
  354.       jam.bg_hover[2] = false
  355.     end
  356.  
  357. --spot 4
  358.     if (x > 133 and x < 425) and (y > 191 and y < 220) then
  359. --Slots true or false depending on the page
  360.       jam.audio_slot_4[rep + 1] = false
  361.       jam.audio_slot_4[rep] = true
  362.       jam.audio_slot_4[rep - 1] = false
  363. --Play music in the first slot depending on which page
  364.       if jam.audio_slot_4[rep] == true then
  365.         sol.audio.play_music("zane_kukta_music/slot_4/"..rep)
  366.       end
  367. --Hover image true
  368.       jam.bg_hover[3] = true
  369.     else
  370. --Hover image false
  371.       jam.bg_hover[3] = false
  372.     end
  373.  
  374. --spot 5
  375.     if (x > 133 and x < 425) and (y > 241 and y < 270) then
  376. --Slots true or false depending on the page
  377.       jam.audio_slot_5[rep + 1] = false
  378.       jam.audio_slot_5[rep] = true
  379.       jam.audio_slot_5[rep - 1] = false
  380. --Play music in the first slot depending on which page
  381.       if jam.audio_slot_5[rep] == true then
  382.         sol.audio.play_music("zane_kukta_music/slot_5/"..rep)
  383.       end
  384. --Hover image true
  385.       jam.bg_hover[4] = true
  386.     else
  387. --Hover image false
  388.       jam.bg_hover[4] = false
  389.     end
  390.  
  391. --spot 6
  392.     if (x > 133 and x < 425) and (y > 291 and y < 320) then
  393. --Slots true or false depending on the page
  394.       jam.audio_slot_6[rep + 1] = false
  395.       jam.audio_slot_6[rep] = true
  396.       jam.audio_slot_6[rep - 1] = false
  397. --Play music in the first slot depending on which page
  398.       if jam.audio_slot_6[rep] == true then
  399.         sol.audio.play_music("zane_kukta_music/slot_6/"..rep)
  400.       end
  401. --Hover image true
  402.       jam.bg_hover[5] = true
  403.     else
  404. --Hover image false
  405.       jam.bg_hover[5] = false
  406.     end
  407.  
  408. --spot 7
  409.     if (x > 133 and x < 425) and (y > 342 and y < 368) then
  410. --Slots true or false depending on the page
  411.       jam.audio_slot_7[rep + 1] = false
  412.       jam.audio_slot_7[rep] = true
  413.       jam.audio_slot_7[rep - 1] = false
  414. --Play music in the first slot depending on which page
  415.       if jam.audio_slot_7[rep] == true then
  416.         sol.audio.play_music("zane_kukta_music/slot_7/"..rep)
  417.       end
  418. --Hover image true
  419.       jam.bg_hover[6] = true
  420.     else
  421. --Hover image false
  422.       jam.bg_hover[6] = false
  423.     end
  424.  
  425. --spot 8
  426.     if (x > 133 and x < 425) and (y > 391 and y < 419) then
  427. --Slots true or false depending on the page
  428.       jam.audio_slot_8[rep + 1] = false
  429.       jam.audio_slot_8[rep] = true
  430.       jam.audio_slot_8[rep - 1] = false
  431. --Play music in the first slot depending on which page
  432.       if jam.audio_slot_8[rep] == true then
  433.         sol.audio.play_music("zane_kukta_music/slot_8/"..rep)
  434.       end
  435. --Hover image true
  436.       jam.bg_hover[7] = true
  437.     else
  438. --Hover image false
  439.       jam.bg_hover[7] = false
  440.     end
  441.   end -- end of if left button
  442.  end-- end of page
  443. end -- end of for loop
  444. end -- end of mouse press function

14
Your scripts / Gallery Script
« on: November 19, 2016, 12:37:18 am »
About:
This is a script where you can show pictures by clicking the screen with your mouse cursor. You can lock thumbnails and images as well.

Demo Download:
Gallery Script

Features:
1.Use bitmaps(png,etc)
2.Limitless pages and the ability to set page amounts.
3.Able to lock images and thumbnails
4.Easy to change! Go down to the comment, "CHANGE SETTINGS AREA:" at the beginning of the script.

YouTube Preview:
Gallery Script

Gif Preview:

15
Your scripts / Pick Name Script
« on: November 17, 2016, 01:25:49 am »
About:
This script is about picking a name for the hero. Pick a name, any name!

Download Demo:
Pick Name Script

Features:
1.Use bitmaps(png,etc).
2.Use of sol.text_suface for font packages (Any Solarus compatible font package you want)
3.Ability to change the number of boxes, text to show, and change the spacing between each line of text and/or box.
4.The ability to easily change the text in the, "CHANGE SETTINGS AREA:".
5.Easy to change! Go down to the comment, "CHANGE SETTINGS AREA:" at the beginning of the script.
6.A RGB color reference comment list at the end of the script
7.The ability to easily change the font in, "CHANGE SETTINGS AREA:."
8.Easily change the font color in, "CHANGE SETTINGS AREA:." Uses RGB color, so check the reference list at the end of the script.
9.Easily change the font size in, "CHANGE SETTINGS AREA:."

YouTube Preview:
Pick Name Script

Gif Preview:


Next Script:
I will be finishing and releasing my gallery script. Honestly...it could easily be modified for visual novel usage.

Pages: [1] 2 3 ... 5