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

Pages: 1
1
Ask a Question / Re: Problem With Music/Sound Effects
« on: November 16, 2018, 01:16:03 pm »
Sorry for my late response but I just wanted to say thank you so much for your help! I ended up switching it so the music volume goes down when sound effects play (instead of completely pausing), but the attributes you suggested really helped me with this and work perfectly! Thanks again.

2
Ask a Question / Re: Problem With Music/Sound Effects
« on: November 13, 2018, 11:13:09 am »
Thanks for your reply. The "sound off" attribute is a global attribute used to determine if the player hits the mute button on the opening screen. I will attach the behavior to this post. To use the code you suggested, should I create another global attribute in addition to that one? I really appreciate the help, thanks!

3
Ask a Question / Problem With Music/Sound Effects
« on: November 12, 2018, 12:45:34 pm »
Hello. I have a game where sound effects are triggered when different events occur. However, I also have background music that pauses when sound effects play. Somehow, when the music resumes, it starts overlapping until there are several different points of the song playing and overlapping depending on how many times the song was resumed. Is there any way to just resume the song and not have all the overlapping? Hopefully, this makes sense and I really appreciate any help/advice. Thank you!

4
Ask a Question / Re: Jumping While in Air/Falling
« on: November 02, 2018, 01:26:01 pm »
So, I ended up omitting the touch floor attribute entirely to try and simplify the code. Instead, I am using a boolean to test if the player has already jumped (to prevent continuous jumping that allows the player to reach the top almost immediately). It works the first time (there is a delay between jumps). Then it allows the player to jump continuously, basically flying. Do you have any suggestions on how to prevent this? Again, I really appreciate the help!! Thank you.

5
Ask a Question / Jumping While in Air/Falling
« on: November 02, 2018, 11:17:42 am »
Hello. I am working on a game where the main actor and platforms are falling, and the actor must reach the top by jumping on the platforms. As I am testing the game, I have found it would be better if the actor can jump while on the platforms, as well as when they are falling. However, the code I thought would produce this result is not working, and the actor can only jump while on the platforms. Is there a way I can make the actor also jump while falling? Hope this question makes sense, and I appreciate the help. Thank you!

6
Ask a Question / Constant Speed after Colliding
« on: October 29, 2018, 12:19:26 pm »
Hello. I am currently working on a falling platform game and have a question about falling (y) speeds. The game starts with a platform falling with a cat on top of it. The goal is for the cat to jump from platform to platform and reach the top of the screen. However, I am finding that these collisions may be affecting the falling speed of the cat. It seems as if the cat never reaches the falling speed I specify in the code, or starts to speed up at the very bottom of the screen which defeats the purpose. Could anyone advise me on how to make the cat actor always remain at a constant falling speed, aside from when it is jumping or landed on a platform? Hoping my question/concern makes sense, and I appreciate the help! Thank you.

7
Ask a Question / Re: Problem With Jump
« on: October 27, 2018, 12:39:26 pm »
When I removed the touch floor to false block completely, the actor was able to jump but it just kept flying upwards and exited the screen. But, when I used the do after 0.25 seconds, the actor jumped normally!

Thank you both for your help, I appreciate it!

8
Ask a Question / Re: Problem With Jump
« on: October 27, 2018, 08:36:30 am »
So I've tried modifying the jump logic a few times and I still can't seem to get the jump to work. I've attached the updated code and appreciate any further advice. Thank you!

9
Ask a Question / Re: Problem With Jump
« on: October 27, 2018, 08:06:44 am »
Thanks for your help, I appreciate it!!

10
Ask a Question / Problem With Jump
« on: October 26, 2018, 02:02:59 pm »
Hello. I am currently working on a falling platform game where the main actor must jump on the falling platforms to reach the top of the screen. I have set up the game so the actor starts out on a platform then it begins to fall, along with other platforms. I also put in code so the actor should be able to jump when action1 is pressed, however, it is not allowing the actor to jump at all. I have attached the code and appreciate any help/advice you can give me. Thank you!

11
Ask a Question / Resuming Sound
« on: October 18, 2018, 09:43:29 am »
Hello. I have different sound effects that are triggered when the player advances or has to restart the level. I want the sound on channel 0 to play throughout the game, and only pause when a level restarts or advances. When the player advances to level 2, the sound on channel 0 pauses, the sound on channel 1 plays, then the sound on channel 0 resumes. However, when the player has to restart level 1, the sound on channel 0 pauses but does not resume after the sound on channel 2 finishes playing. I am not sure why I cannot get it to resume and appreciate any help you can give me! Thank you.

12
Ask a Question / Re: Problem with Sound
« on: October 16, 2018, 04:49:05 pm »
Thanks for your help!!

13
Ask a Question / Problem with Sound
« on: October 16, 2018, 03:42:24 pm »
Hello. I am currently working on a game for class and am running into an issue with sound. I have already put the sound through Audacity to make sure it's okay. However, whenever the event that triggers the sound happens, it sounds really distorted at first, then the sound plays normally. I have attached the code I am referring to and appreciate any help/advice! Thank you.

Pages: 1