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 - Diarandor

Pages: 1 2 [3] 4 5 ... 65
31
Development / Re: problem_start_dialog
« on: May 28, 2018, 04:16:10 am »
This syntax is wrong: game:get_value("sword",1)
This syntax is correct: game:get_value("sword") == 1

32
Bugs & Feature requests / Re: Transitions like alttp
« on: May 23, 2018, 09:30:30 pm »
IMO, no coding skills = you can't do it.
Solution: learn Lua, or find a programmer for your project.

33
By default the engine plays the sound sword.ogg (or maybe swordX.ogg with X your current sword level, but I don't remember it now). If you want a different sound, just replace that file. If you want randomized sounds, there is only 1 unclean solution: replace sword.ogg by a silent sound and then call your random sounds from item:on_using().

EDIT: you need to add the file requested by that error.

34
Development / Re: Switch between two sprites by pressing a key?
« on: May 22, 2018, 03:48:04 pm »
A very old video (my first video) may motivate you and shows things you can do.
https://www.youtube.com/watch?v=iY-yckilRrg&t=0s&list=PLysNP7i5PKBCgT898-xreWyPcaByEB6Rg&index=72
My switch hero system is different from yours (you want one like in Secret of Mana, which is simpler) and mine is like the one in Lost Vikings games.

35
Chris has fixed this for the dev version of Solarus. The fix will appear in the official version 1.6 of Solarus when it is released.

37
I confirm that this seems an engine bug. I will open an issue for this.

38
This is weird. Are you sure that your sprite file was correctly saved when you ran the project? I think that when you use the "up" direction on the hero, the shield appears with the "right" direction and not the "down" direction. Could you share a link to your project so that we can find the problem?

39
Development / Re: How to create entity over hero?
« on: May 08, 2018, 05:31:53 pm »
You should check (and study) the code of the custom shield of the project CoS. I use 2 custom entities following the hero: one to draw the shield below, and the other to draw the shield above. I use a trick that is not obvious.

40
Development / Re: Need help with effects and weather!
« on: May 04, 2018, 10:35:41 pm »
There are instructions in the scripts that explain how to use and implement them. You can study the scripts of CoS to learn how it works. I recommend you to postpone doing the complicated stuff and focus on learning more basic stuff.

41
Development / Re: Need help with effects and weather!
« on: May 04, 2018, 09:58:00 pm »
Ahoy there! It is dangerous to go alone, read this!
http://forum.solarus-games.org/index.php/topic,1054.0.html

42
Development / Re: Left Direction of Hero Sprite Goes Blank
« on: May 04, 2018, 08:40:32 pm »
Your video shows what is the problem: one of the origin coordinates is wrong and humongous.

43
Development / Re: Creating a respawn point on map changed?
« on: May 03, 2018, 11:43:16 pm »
I got a new idea: use the state of the hero "stairs" together with some event: on_state_changed or on_map_changed. I'm not sure if that state is used for both types of stairs, but if so, you may need to detect the good case somehow. Maybe using the direction of the hero instead of the direction of the stairs could work too.

44
Development / Re: Enemies that cling and slow the hero down.
« on: May 03, 2018, 11:04:26 pm »
Tip: you could try to use menus or even items (they have many useful events) to manage the timers (with context on the game) and other stuff you need.

45
Development / Re: Creating a respawn point on map changed?
« on: May 03, 2018, 10:59:30 pm »
It should be possible. Spiral staircase teleporters should notify to your respawn script immediately after the teleportation, and the respawn script should compute the correct respawn position: +16 pixels in the direction of the stairs.

Pages: 1 2 [3] 4 5 ... 65