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

Pages: 1 2 3 ... 19
1
Ask a Question / Re: Collision between actors not detecting
« on: November 16, 2020, 10:27:56 am »
I tried adjusting the block codes but it still doesn't detect the collision, not even on the same Actor Group. How do I make the actors detect the collision?

2
Ask a Question / Collision between actors not detecting
« on: November 08, 2020, 08:25:28 am »
Hi,

I'm trying to make my actor collide with another actor and upon mouse release, kill self.

Both have collisions and both actor type collides with each other under the settings.

I can't figure out why the collision is not working. Dustbin is also not a sensor.

Am I using the collision blocks wrongly?

3
Ask a Question / Re: Drag and drop items on grid
« on: November 05, 2020, 05:53:23 am »
Ah, that's the video. I kept trying to find it in the Cutscene Resource Pack.

4
Ask a Question / Re: Drag and drop items on grid
« on: November 02, 2020, 04:55:32 am »
I read the part in the document concerning the Actor Aura that I'm using, but don't see any part that shows how to activate it. I've also watched the video on your itch.io website for the cutscene resource pack, but can't find the the actor aura part. I must have missed it.

5
Ask a Question / Re: Drag and drop items on grid
« on: November 01, 2020, 05:48:02 am »
What about activating the aura? It looks like i'll have to tweak the behavior if I want to activate it the way I want it to be.

6
Ask a Question / Re: Drag and drop items on grid
« on: October 31, 2020, 08:50:21 am »
Oh, i got it. Was looking at the wrong place...

7
Ask a Question / Re: Drag and drop items on grid
« on: October 31, 2020, 08:44:02 am »
I think it's better to continue from here instead of inbox.

Regarding outlining the asset using the Actor Aura behavior, you mentioned to set the scale parameters.
Is this the scale parameter that you're referring to? I don't see where I can set the Minimum and Maximum scale parameters.

8
Ask a Question / Re: Drag and drop items on grid
« on: October 28, 2020, 09:59:16 am »
Oh I get it, thanks! What's the difference between the Ceiling and Round? Round seems to work better for me (maybe because of the temporary asset I'm using).

9
Ask a Question / Drag and drop items on grid
« on: October 26, 2020, 10:23:19 am »
I'm trying to create a function where players can decorate their scene with furniture. Players can place furniture by dragging and dropping them onto the scene. But I want it to follow a grid.

Is there a behavior for drag and drop based on grid? If not, can someone point me to a tutorial on how to program that?

Thanks!

10
Ask a Question / Re: Can't add item to array
« on: October 26, 2020, 10:19:03 am »


Oh got it. I was searching for Index. Will certainly use this block for the texts. Thanks!

11
Ask a Question / Re: Can't add item to array
« on: October 25, 2020, 09:41:15 am »
Got it, I'll check my other behavior again to see what the difference was. What do you mean by set index block? I've searched for index blocks but the blocks doesn't seem like it's something I could use for what I'm doing.

12
Ask a Question / Re: Can't add item to array
« on: October 24, 2020, 11:30:02 am »
Yes, my CurrentTpreference is a list game attribute, same as what I did for my food behavior, which are also List attribute and yet it works. But why does it not work for this behavior?

If it has to be a text attribute instead of a list, then how do I check if 2 Text Attribute are the same?

13
Ask a Question / Re: Can't add item to array
« on: October 23, 2020, 10:30:22 am »
I've attached the screenshots of the block codes (using the camera icon), the error message and the preview code.

I've also tried to add items to the Tpreference list attribute using Settings > Attribute, but it's still the same error.

14
Ask a Question / Re: Can't add item to array
« on: October 22, 2020, 10:06:18 am »
I've looked at the error message and it pointed to line 81, which is these blocks of code. However, its the same blocks used for my FoodPreference behavior.

Tpreference and CurrentTpreference are lists, just like foodpreference and currentfoodpreference. Only Tpreferencenumber and PreferenceNumber are number attributes.

It looks the same to me, and I have no idea why it doesn't work. I can set the CurrentTpreference list to be the same as Tpreference. But the error only happens when I try to select an item from the list, be it random or not.

TypeError: Error #1034: Type Coercion failed: cannot convert "ToyA" to Array.
   at MethodInfo-10187()[C:\Users\YunXiang\AppData\Roaming\Stencyl\stencylworks\games-generated\Virtual Pet V3\Source\scripts\Design_61_61_TPreference.hx:81]
   at com.stencyl.behavior::TimedTask/update()[D:\Stencyl\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\behavior\TimedTask.hx:48]
   at com.stencyl::Engine/update()[D:\Stencyl\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2574]
   at com.stencyl::Engine/postUpdate()[D:\Stencyl\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2836]
   at com.stencyl::Engine/onUpdate()[D:\Stencyl\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2828]

The error message is pointing to line 81 right?

15
Ask a Question / Re: Can't add item to array
« on: October 21, 2020, 09:35:02 am »
This is the screenshot for Tpreference behavior. I did the same for my Food preference and it works.

Pages: 1 2 3 ... 19