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

Pages: 1 2 3 4 5
16
Ask a Question / Re: Sounds Effects Break the Music
« on: September 16, 2019, 03:51:00 pm »
Using the Fade In on channel x block actually works! Thank you for solving a problem that bugged me for a long time.

17
Ask a Question / Re: Sounds Effects Break the Music
« on: September 14, 2019, 08:30:28 pm »
So I did use the channel block but now the music never starts up. Is it possible my sound effect file is corrupt or is there more to it?

18
Ask a Question / Re: Sounds Effects Break the Music
« on: September 14, 2019, 07:28:18 pm »
It still seems to only sometimes work for music to start up  :-\

19
Ask a Question / Re: Sounds Effects Break the Music
« on: September 14, 2019, 06:00:03 pm »
I attached the sound effect I am using. As for the code:

https://imgur.com/a/h1IuB9X
This is for when the player touches the banana

https://imgur.com/a/vj38RIY
This is for when the player dies from touching the spikes

https://imgur.com/a/rDzcDqX
This is when the level is created

20
Ask a Question / Sounds Effects Break the Music [Solved]
« on: September 14, 2019, 04:22:31 pm »
So I figured out that when I use a sound effect in a level, sometimes the music won't reload on creation of the scene if the player dies so it will just stay silent. When I remove the sound effect from the level, if the player dies, it will 100% of the time reload the music successfully. Is there something wrong with my sound effect file or could it be something else?

21
Actually, I played around a bit more with the channels and it seems to be working fine! It's a shame I have to do separate channels for each scene that contains music but at least it works.

22
Ask a Question / Re: Enemy Starts Shooting When Player Gets Close
« on: June 06, 2019, 02:07:28 pm »
Appreciate it!

23
So I tried doing the channels but it didn't work out well. For some reason, I put the death sound after the whole code plays out of getting killed by dangers, and it only works sometimes. I noticed that if the player was moving before the player died to dangers the music wouldn't start, but if the player went into the danger without moving, the music would start up. I'm not sure if this is a bug in the engine, or somehow, the player is interfering with the music.

24
Ask a Question / Re: Enemy Starts Shooting When Player Gets Close
« on: June 05, 2019, 03:12:07 pm »
Is there a way I could use blocks in Stencyl to create the area the enemy starts shooting the player, or is Easy Math extension the best way to do this?

25
The reason I fade out the sound is to prevent overlapping of music when the level is created again, and also, it would still be able to play the death sound. I did set the volume to 100 for when the scene loads but it still doesn't work.

26
So I did the do after block but it didn't work. I did some testing around and apparently removing the death sound from the code works :-\. I don't want to remove the death sound from my game so how can I implement it without it interfering the music?

27
I've been trying to figure out how to make it so when the player gets close enough to an enemy, the enemy will start shooting at the player. How exactly do I execute this?

28
So adding the un pause block at the beginning of a scene worked with the projectiles, but I'm still having problems with the music not starting up.  Any ideas?

29
I use the pause block to stop any enemies moving around in the level and/or projectiles. I assumed that when you restart, the game automatically un pauses. Could that be the cause of the problem?

30
I've been having problems with my music being unable to play sometimes after the player dies or restarts a scene. Another problem is during the boss fight, the boss is suppose to shoot projectiles at the player, but when the player dies during the fight, it restarts to the projectiles being created and staying where it was created. This goes for the player as well since they are suppose to shoot at the boss. This is the code I have if it's helpful.

https://imgur.com/RsJE2kj
This is when the player gets killed by any dangers. The code is the same for all dangers.
https://imgur.com/FFYx0b3
How a scene is created.
https://imgur.com/mPUDRLe
When the projectile is created by the boss.
https://imgur.com/YUlpXkl
When the projectile is created by the player.

Pages: 1 2 3 4 5