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 ... 154
16
Ask a Question / Re: Trying to fade my logo in but I got an error
« on: April 16, 2024, 03:06:48 pm »
You can click the error message and select "open all", it will point to where the error is.

17
Ask a Question / Re: Trying to fade my logo in but I got an error
« on: April 16, 2024, 09:56:04 am »
Your "TextInput" behavior has the parameter "sceneID" without any value. You probably forgot to set a scene to switch to in a scene switch block.

18
Ask a Question / Re: problème avec java
« on: March 31, 2024, 04:48:14 pm »
On Stencyl 4.1.0, you can erase the path to the jdk under File > Preferences. Stencyl will automatically get the relevant, working jdk. Redownload Stencyl if you are not on 4.1.0.

19
Ask a Question / Re: Attempting Crash Course 2
« on: February 29, 2024, 05:57:00 pm »
Your bullet groups is set to "WillHit", both in its group (Properties tab) and in its Animation tab.
Player ship is set to "Actors".
In your actor groups (Settings > Groups) "WillHit" only hit "Players" and "Enemies". They do not hit "Actors".

Solution: change the actor group for your player ship (Properties tab) to "Players".

Your player ship cannot fire bullets because you have some "Bullet Pop" if statement in the button press event. It seems you just copies the code from the enemy ship, so you might want to revise that.

Finally, as I stated in my previous message, you have to add the offset to the bullet position when creating it for the player actor. As I explained:
Quote
In short, positive X is to the right, negative left; positive Y is down, negative is up.
You are using a positive Y offset in the player code. You are subtracting by a negative number, so that becomes positive. Remove the - simbol you manually added to the number.

20
Ask a Question / Re: mouse x y forced change
« on: February 28, 2024, 11:48:10 am »
Code: [Select]
openfl.Lib.application.window.warpMouse(0, 0);Paste this in a code block, replace the 0s with the desired on-screen coordinates, or with the internal name of number attributes. This only works on desktop targets (Windows/Mac/Linux), not on Flash nor HTML5.

21
Ask a Question / Re: Attempting Crash Course 2
« on: February 24, 2024, 07:23:11 am »
You decided to make "ShipHealth" a game attribute (purple). Under Settings > Attributes, your ShipHealth is set to 0. Unless you give it an initial value greater than 0, your ship gets Fist of the North Star'd and is already dead before you even compile. You are setting a blue attribute "Ship Health" to 5 in a when created event for the Player Ship. Purple and Blue attributes are different.  Furthermore your "Hit" custom event is decrementing a local attribute (blue). You are mixing two different things.

Solution: remove "Ship Attribute" from Settings > Attribute, then in your "Update" event, replace the purple block with the blue one.

Other notes:
-Use only one "Updating" event in your code per behavior, that's my recommendation. You can have stuff for movement, camera limiting and kill on 0 health all in the same event. Use comment blocks to identify each part.
-There is no code in your bullet to deal damage to the player ship. According to your collision groups, the bullet canot even colide the player ship. That means the enemy ship cannot damage the player at all.
Solution:
1) In your bullet code, replace your collision event with the "something else" collision event (the first one) and adjust your code accordingly. That way your custom event "Hit" will be called for whatever it hits.
2) You'll also need to make your bullet collide with the player ship (Settings > Group).
3) You have to create the bullets further apart from the player ship with an offset. An offset is a position adjustment, something like "X position of self + X offset, Y position of self + Y offset". You must adjust the offsets so that your bullet does not colide with the player ship when created, otherwise it will hit itself. Consult the video I posted earlier about positions. In short, positive X is to the right, negative left; positive Y is down, negative is up.

-You could have made the health portion of your code a behavior, and attach that to both your enemy ship and player ship. That would include health management through non-hidden attributes (ship health as a number that is not hidden instead of setting it on When Created), the "Hit" custom event and death on 0 health. Making behaviors for reusable code is my recommendation.

22
Ask a Question / Re: Attempting Crash Course 2
« on: February 21, 2024, 04:50:02 pm »
Open your bullet actor, click "Collisions", and check the "Is a Sensor?" box on the right side.
The increment/decrement block only applies to local attributes (the blue ones you create inside the behavior), game attributes don't show up in them.
Click "File > Export Game...", and attach the generated .stencyl file here, that way I can take a better look.
From what I saw, you only have one bullet actor, and it only has an event to hit the player at the bottom. Furthermore, the way you are creating the player bullets, they spawn on top of the player and deal damage.
As for your last question, a sudoku game is possible, but I think that's a bit more "asbtract" than a space invaders clone or platformer for instance, with its own set of challenges. That would apply regardless of your game engine of choice as far as I know.

23
Ask a Question / Re: Attempting Crash Course 2
« on: February 17, 2024, 05:03:27 pm »
Likely your bullet actor is not set as a sensor in its collision tab. Your alien ship physically collides with your solid bullet and that interferes with its motion.

24
Ask a Question / Re: Attempting Crash Course 2
« on: February 17, 2024, 12:25:50 pm »
I don't know what "desynchronize" and "goomba behavior" is. If you provide screenshots or any visual aid and explain what you mean, someone might be able to help.

25
Ask a Question / Re: Attempting Crash Course 2
« on: February 16, 2024, 05:08:51 am »
Push sharply instead of gently.
And regarding your first screenshot, watch again the second video I linked.

26
Ask a Question / Re: Attempting Crash Course 2
« on: February 08, 2024, 04:19:27 am »
A few tutorials that cover your issues: https://youtu.be/j10SMwy2prM and https://youtu.be/LxN6yGSOkD4
The short version: x-dir and y-dir accept values between -1 and 1.
The update event happens 100 times per second.
A do every will keep repeating unless you have the exit condition inside of it. External if checks won't be able to interrupt it. Another tutorial on the subject: https://www.youtube.com/watch?v=8A3mmm32l6g

27
Ask a Question / Re: Toggle Block animations not working
« on: October 28, 2023, 05:32:46 pm »
This video explains how to use the basic events, of which "Update" is the most important:  https://youtu.be/j10SMwy2prM
It should explain how timing works for that events, which is your issue at the moment.

28
Ask a Question / Re: Sand Box Violation
« on: October 27, 2023, 05:25:24 am »
That's a flash-only warning and is harmless, you can ignore it. If you don't want to see it, test in another target, HTML5 for example.

29
Paid Work / Re: Help With Some Programming Events (I'm a noob)
« on: October 05, 2023, 06:57:21 pm »
Assuming you attached my Player Control behavior to your actor, you probably set your jumping right animation to the jump left animation attribute.

30
Paid Work / Re: Help With Some Programming Events (I'm a noob)
« on: October 05, 2023, 11:37:48 am »
Your problems are not related with the behaviors. For general tutorials, you have the crash course: https://www.stencyl.com/help/start/
and Stencylpedia: https://www.stencyl.com/help/toc/

For some of my videos explaining some key concepts: https://www.youtube.com/violinistpenguin
You are having issues with friction, which you want to set to 0. A video specifically on the subject: https://www.youtube.com/watch?v=97M4hchcfwI

I recommend carefully reading the description of each attribute in the behavior, and most importantly go through both Crash Courses at least once to get familiar with Stencyl.

And finally, discord is more active than the forums:  https://discord.gg/XjawJCW

Pages: 1 2 3 4 ... 154