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

Pages: 1 2 [3] 4 5 ... 17
Bugs & Feature requests / Re: Cutscene builder bug
« on: October 30, 2019, 08:34:57 pm »
Map:on_started is called before isn't a good place to start this. Map:on_opening_transition_finished() is called after on_sarted, and also the hero is automatically unfrozen after the transition is over, which is probably the issue you're solving with the 1sec delay.

Try calling this from on_opening_transition_finished, that might fix it

Development / Re: how to make a 'code/password'
« on: September 21, 2019, 04:24:42 pm »
Probably a reasonable, simple way to do it is like

Local failed = false
function enemy_1:on_dead()
  if enemy 2 or 3 is dead
    failed = true

function enemy_2:on_dead()
  if enemy 3 is dead or enemy 1 is alive
    failed = true

function enemy_3:on_dead()
  if enemy 1 and 2 are dead and failed = false
    Open door

I don't want to type actual code on my phone, lol. But map:has_entity("enemy_1") will return true if they're around, false of they're dead.

This isn't the most elegant way to do this, but it's simple to understand. Honestly when I started typing I thought it'd be a lot simpler lol. If you wanted to do more than 3 enemies in a certain order, this would get bad though. Then you'd want an array of enemies that checked if each one before it was dead and each one after it was alive probably.

Your projects / Re: Ocean's Heart Beta Testing
« on: September 15, 2019, 01:50:45 am »
Hi Wuzzy. I've communicated with you twice since you sent that message, explaining that the first round of beta testers finished up, the game is undergoing some big changes, and I am planning another round of beta tests in October-November.

I'm currently between betas for Ocean's Heart, but around October-November (roughly), I'll be opening another closed beta.

If that's not working for you I understand, you're free to have the clarity you need to move on then. Thanks!

Development / Re: Text box appearing when getting an item
« on: September 14, 2019, 03:28:51 am »
Yeah, the on_created event is called before the game starts. It creates all the items, it's better than not creating the item in memory until you get it for a lot of reasons.

On variant changed would be the right place, but I still can't figure out why it wouldn't be playing automatically. If you game is on gitlab or GitHub I can pull it down and take a look if you want. Have you made other items and the dialogues display automatically?

Development / Re: Text box appearing when getting an item
« on: September 13, 2019, 02:54:37 am »
Could the sword item in that pack being in a subdirectory also be a factor? Also just gave a cursory glance.

Development / Re: Text box appearing when getting an item
« on: September 12, 2019, 04:19:54 am »
I dropped your item's code into my sword item, and it displayed the dialog when I picked it up, so it's not your code there, and if you're getting any dialogs at all, it's not setting the language in main.lua.

Your item is called "sword", right? Since the engine uses the item's name to search for a matching dialog in the _treasures dialogs. That's the only other thing I can think of at the moment :^0

Development / Re: Text box appearing when getting an item
« on: September 11, 2019, 02:09:23 pm »
Hmm, it's probably just a small mistake, but it's hard to say where if you aren't getting error messages.

If you set the item as a pickable, instead of in a chest, do you still not get the dialogue? If there's no dialogue for an item you pick up as a pickable, there will just be a 1-2 second pause where the hero is holding the item and nothing is happening. If that pause is happening, it's definitely the item not finding the dialog. Does the item's script have item:set_brandish()? The item might be not displaying the dialog because of some code in the item.

Development / Re: :on_interaction_item(item_used)
« on: September 07, 2019, 02:17:22 am »
I think what you're missing is fundamentally misunderstand what an "item" is in this context.

If I say x = 1
Then x is a number

If x = "boomerang"
Then x is a string

If x = y
Then x is whatever the variable y is.

Right now you're saying
`if item_used == x then`
But you haven't defined the variable x. You have to tell the code that by the variable x, you mean the equipment item named boomerang, so you need to use a game method to get that equipment item.

local x = game:get_item("boomerang")
if item_used == x then ...

Development / Re: Prevent attack command from attacking
« on: August 26, 2019, 07:54:05 pm »
Can you post the things you tried? Like the actual code, you said you used on_state_changed() but like, HOW did you use it?

Development / Re: Seach for an entity?
« on: August 14, 2019, 12:49:19 am »
Oooh, I see. I'd argue that you're trying to solve the wrong problem. The issue isn't that you need to stop enemies from moving, you really SHOULD be suspending the game for this, and you need to figure out how to show the animation you want anyway.

Which is pretty simple:
Code: [Select]
I mean, your solution technically works so it's not wrong, and maybe should is a strong word. But effectively what you're describing is you do want the game to suspend. You don't want enemies moving, or starting attacks, you wouldn't want NPCs to keep walking around, you wouldn't want some timer you've set to go off, etc. If you don't suspend the game you leave yourself open to a lot of potential conflicts I think

Development / Re: Seach for an entity?
« on: August 12, 2019, 01:40:11 pm »
Oh, you had been typing enemy:freeze(), so I assumed that was a method you'd added yourself to the metatable or something.

Depending on how simple you enemies are, you might be able to add an enemy:freeze() method, as long as you remember to deal with the fact that all when an enemy is damaged, all timers and stopped on them and enemy:restart() is called.

If you don't want to do that, unfortunately enemy:immobilize() is the only option, and you can't set the length of time they're frozen and there's no way to unfreeze them.

Development / Re: Seach for an entity?
« on: August 09, 2019, 03:12:25 pm »
I think you could do something like
```local map = item:get_map()
for enemy in map:get_entities_by_type("enemy") do

Game art & music / Re: Minish Cap Hero Template Request
« on: June 23, 2019, 07:43:56 pm »
Wow, that must have been a ton of work to put together, can't believe I've never seen it before! That's awesome.

I wanted to say, I really love the fogs you use on your maps! They look very good in the screenshots, it really enhances the atmosphere!

Your projects / Re: Ocean's Heart Beta Testing
« on: May 04, 2019, 09:37:53 pm »
Cluedrew! I would love to have you take a look, I'll send you a link. I don't need any input by any particular time, I'm just hoping to whatever feedback I can so I can change things that don't work as soon as possible : )

I don't have a good estimate on how long it'll take to play through- it might be possible to make it through the main story in 5-7 hours? However, the game will get pretty difficult if you don't spend any time exploring or doing side-quests, which reward you with better armor and ways to make your weapons stronger. It's probably time for me to go play through the whole game again to get a new estimate, because so much side content has been added, and much main story stuff restructured and improved.

Anyone who's doing the beta have an estimate for how long they've been playing?

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