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

Pages: 1 2 3 4 ... 150
16
Make your code a behavior.
Make a non-hidden actor attribute, and reference that in your code.
When you attach the behavior to your scene, select the non-hidden actor attribute, and select the actor button you placed in the scene designer.

Or, better yet, make this an actor behavior and attach it to your button actor. That way you can reference "self" without attributes.

17
Ask a Question / Re: Invaders - Increment Block
« on: December 05, 2021, 07:04:16 am »
If "Victory Counter" is a game attribute (purple), those don't fit in the increment block. Use the following:
Code: [Select]
Set Victory Counter to [Victory Counter] + 1

If it's a regular blue attribute, just select it from the dropdown provided in the increment block.

18
Ask a Question / Re: Can stencyl develop PS4&PS5&XBOX games?
« on: November 30, 2021, 04:31:54 am »
Games for any platform other than PC have to be ported. You can hire someone to do the porting process, and some Stencyl games have been successfully ported to Switch.

19
Ask a Question / Re: Sharply pushing things away (for Angry Blosics)
« on: November 26, 2021, 06:59:18 pm »
It seems my description was unclear.
Set X to X-center of actor on region minus X-center of self
Do the equivalent on Y.

20
Ask a Question / Re: Sharply pushing things away (for Angry Blosics)
« on: November 26, 2021, 03:42:42 pm »
Reverse the operation of your "set X" and "set Y" blocks in the updating event, that should do it.
Also, only use one updating event per behavior, that is my recommendation.

21
Ask a Question / Re: Sharply pushing things away (for Angry Blosics)
« on: November 26, 2021, 05:22:10 am »
If I understood it correctly: don't use negative forces.

22
Ask a Question / Re: canĀ“t run my game on IOS Device
« on: November 24, 2021, 12:04:10 pm »
Here in the forum, you have access to the subscribers only section. In there you can find a link to download the private builds. Download the most recent one available for your platform, and test again.

And to be safe, make a back up of your game before doing that (File > Export Game).

23
Ask a Question / Re: Slope issues
« on: November 21, 2021, 05:18:59 pm »
The hop happens because of the physics engine.

The same link for my Utility Pack that I posted in the other thread. Using that, you can make your slopes as semi-solid actors, and the player or any other actor can smoothly move along the semi-solid, as you might be able to see in the sample game.

The 1-2 pixels is most likely because your animations are not all the same size for your actor, and the base of their collision boxes don't match, specially of their on ground and falling animations.

24
Ask a Question / Re: Angry Birds-esque "stars" system
« on: November 21, 2021, 07:13:53 am »
You already have a code for the stars in your last screenshot, so what's the problem? If you have trouble saving that data for each level, use a list game attribute. https://www.stencyl.com/help/view/lists/
Store in different indexes for each level, and only store your current value if it is greater than the value on the list (of if the list doesn't have that index).

And with that list you can draw the stars wherever you want.

25
Ask a Question / Re: "Ready Set Go!" How to
« on: November 14, 2021, 06:18:06 pm »
This covers all your drawing needs: https://youtu.be/diMrZg95Oqw
You can use manual timers in a scene behavior if you want to count the time while it is paused: https://youtu.be/8A3mmm32l6g

A better option is to disable all the behaviors of your player actor during the countdown, or include checks that only allow the code in your key presses to execute after your start timer is completed, instead of pausing/unpausing.

26
Ask a Question / Re: How to register single click to cause code to run?
« on: November 09, 2021, 04:04:37 am »
Same thing. Drawing your value and increasing your value are two different things, handled by two different events.

27
Ask a Question / Re: How to register single click to cause code to run?
« on: November 09, 2021, 03:16:32 am »
Remove your "mouse is pressed on self" from the drawing event.
Use a mouse event that only changes your game attribute.

28
Ask a Question / Re: html5 game reloaded problem on mobile
« on: November 07, 2021, 05:26:32 pm »
Game optimization depends on a lof of elements. The only general tip I can give is removing all the unneeded scales. I'd recommend you try other HTML5 games on that browser and check if the issue still happens, and in other browsers if possible. The issue could be on the browser you are using (which would need to be investigated) or on how your website is serving the game.

29
Ask a Question / Re: Making in-game map efficiently
« on: November 07, 2021, 02:20:30 pm »
You design and create your complete map image only once, the code handles the rest, provided you configure the menu/mini-map layout. The only thing you need to setup per scene is the first map cell that scene corresponds to. It is extremelly less time consuming than your current approach, and given that you are creating actors for each explored room, it is less resource intensive as well.

30
Ask a Question / Re: Making in-game map efficiently
« on: November 07, 2021, 11:47:36 am »
https://luyren.itch.io/luyrens-map-system
Here is my implementation, if you want to use it or learn from it. The documentation file should help you understand it either way.

Pages: 1 2 3 4 ... 150