### 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 ... 5
1
##### Ask a Question / Why Does My Actor Double Jump?
« on: March 01, 2020, 09:18:39 pm »
So I'm trying to figure out why this code is making my Actor double jump. This code ended up working out for my game, but can anyone explain why it is making my actor have a double jump?

https://imgur.com/a/5xOMy6Y

2
##### Ask a Question / Re: Actor Goes Out of Scene
« on: January 17, 2020, 12:38:27 pm »
Sorry about the very late reply but I just looked at my code again after a while and realized the scene is bigger than the resolution you play in  . I appreciate the help though.

3
##### Ask a Question / Actor Goes Out of Scene [Solved]
« on: November 26, 2019, 09:31:09 pm »
Alright so lets refer to the actor I'm having a problem with as actor 1 and the actor that has no problems as actor 2

I've been using this code to keep actor 1 in a scene:
if x < 0
set x to 0 for self
if x of self > scene width (pixels) - width of self
set x to scene width (pixels) - width of self
For some reason it works for when the actor's x < 0 but not for when the actor is out of bounds on the other side of the scene. I have this exact code for actor 2 and it works for them. Any idea as to why actor 1 is not working with me?

4
##### Ask a Question / Re: Randomizing when actors spawn
« on: October 19, 2019, 11:51:56 am »
It all makes sense when using the "do after N seconds" block. Don't know why I didn't notice that before, but anyways, appreciate the help.

5
##### Ask a Question / Randomizing when actors spawn [Solved]
« on: October 18, 2019, 10:09:57 pm »
I've been trying to make an actor spawn obstacles at random times, but it keeps choosing a specific timed pattern rather then having a randomized timed pattern. This is the code I have for the actor:

https://imgur.com/a/KbgIXKT

How do I make it so spawning the actors have random timed patterns?

6
##### Ask a Question / Re: Executing a block of code once but having a constant check in that block of code
« on: September 30, 2019, 07:26:29 pm »
So I printed and saw the status of each attribute. For some reason, it took a long time for shoot to be set back to false, so I decided to do a "do after x seconds" block to set shoot to false and it worked! I appreciate your help.

7
##### Ask a Question / Re: Executing a block of code once but having a constant check in that block of code
« on: September 30, 2019, 06:27:59 pm »
Alright well after doing that it didn't seem to change anything. One thing I noticed is that if I remove the "if current animation for self = x" from the code it will spawn the projectile on the desired frame, but it only does it once. This is very strange because I follow a similar code to another actor that does this method and it works fine. Do you see why it only shoots once?

https://imgur.com/a/fpQksvW

8
##### Ask a Question / Re: Executing a block of code once but having a constant check in that block of code
« on: September 30, 2019, 04:54:37 pm »
https://imgur.com/a/6RVZGMG

From the looks of it, it seems to stop at "if get current frame for self = 4" and "Shoot = false". In game, the actor does execute their animation, but doesn't shoot their projectile at the desired frame. Do you know why that is?

9
##### Ask a Question / Re: Executing a block of code once but having a constant check in that block of code
« on: September 30, 2019, 04:40:51 pm »
Sorry for the late response but I did follow your advice and it still isn't spawning my actor. Any other suggestions on solving this?

10
##### Ask a Question / Re: Executing a block of code once but having a constant check in that block of code
« on: September 26, 2019, 06:23:51 pm »
Wow it was that simple, I don't know why I didn't think of that. Unfortunately a new problem came up where for some reason the enemy won't shoot on a certain frame of their animation.

https://imgur.com/a/XwTAp36

What exactly is the problem here?

11
##### Ask a Question / Executing a block of code once [Solved]
« on: September 25, 2019, 08:26:03 pm »
The title is a bit confusing, but what I'm trying to say is, is that in my "updating" code, I want to execute a chunk of code only once, but have a code inside that chunk constantly updated so it can meet my true or false statements.

https://imgur.com/a/0Sqlevf

The true or false statements I am talking about is inside the "do every 1.4 seconds" block. What can I do to make it so its constantly checking in that block of code so "get current frame = 4" and "shoot = false" can become a true statement?

12
##### Ask a Question / Re: Switching animations after finishing an animation
« on: September 22, 2019, 02:40:36 pm »
So I did use the after x seconds block, but I managed to do an easier method of triggering the code once and being able to switch animations without any problems. Thanks anyways for your help!

13
##### Ask a Question / Switching animations after finishing an animation [Solved]
« on: September 20, 2019, 08:41:55 pm »
I've been trying to figure out how to switch animations after one animation is finished, but I can't figure out the proper blocks for that to happen. This is the code I have so far.

https://imgur.com/a/ooYysAV

14
##### Ask a Question / Re: Getting an Actor to Switch Animations Then Start Shooting
« on: September 17, 2019, 08:23:25 pm »
So I did make it so the code is triggered once and when the player is out of range it will reset the variable, but I don't follow your 2nd piece of advice because I am following a model similar to another enemy where they shoot on a certain frame. This is the code I have for the other enemy and it works.

https://imgur.com/a/fpQksvW

15
##### Ask a Question / Getting an Actor to Switch Animations Then Start Shooting
« on: September 16, 2019, 07:27:17 pm »
Lately I've been trying to make a code where when the player gets close enough to the enemy, the enemy will switch to a surprise animation, and after the surprise animation is done, depending on where the player is, the enemy will start shooting a projectile at the player. I've only gotten the enemy to get to the surprise animation and then the animation keeps on repeating until the player isn't close to the enemy anymore. This is the code I have.

https://imgur.com/a/PBJbgv5

Pages: 1 2 3 ... 5