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

Pages: 1 2 3 ... 11
1
Ask a Question / Re: Attack animation and collision troubles
« on: Today at 07:43:56 am »
You have if current frame count is for example 5. Then code happens only at this frame. You can out that condition in collision event

2
Ask a Question / Re: Do After Block Use Question
« on: May 16, 2019, 05:41:55 pm »
You shouldn't as you know UPDATE EVENT is being executed 100 times per second, so is the delayed event which will cause unpredictable errors. And maybe even a black hole will be created that will swallow the earth

3
Ask a Question / Re: How to detect when a player walks off a tile?
« on: May 12, 2019, 04:09:02 pm »
What do you mean it's a text attribute. Just convert my code to be suitable with yours. Use text attributes instead of my boolean ones. The logic and code structure is the same

4
Ask a Question / Re: Problem with number increment in decimals
« on: May 12, 2019, 10:17:49 am »
You can use the same method to round decimal. Multiply them by 10 and then round and then divide by 10.

5
Ask a Question / Re: Problem with number increment in decimals
« on: May 12, 2019, 03:27:31 am »
Are you sure you're not overwriting value of this attribute? Right click on the palette [set apply effect percentage] and show in behavours.

It's in the Maths section. Or you can just search "round", duh

6
Ask a Question / Re: How to detect when a player walks off a tile?
« on: May 11, 2019, 08:41:27 pm »
You need to check if player is currently colliding with tiles. (bottom of actor to be precise)
-how to detect end of collision:
   -when actor collides:
      -set TEMP TOUCH true,
   -when updating:
      -if TEMP TOUCH == true:
         -set TOUCH true,
      -otherwise:
         -set TOUCH false,
      -set TEMP TOUCH false,

Collision events are always executed before other events.

7
Ask a Question / Re: How do I kill the actor?
« on: May 07, 2019, 01:45:51 pm »
As Layren said.
Open PROJECTILE actor type. And create an event DO AFTER x SECs kill self.

Using [last crated/collided] with time block is never a good solution. Because in games, new actors are being created all the time and [last created one] is not the same actor as it was a second ago, or even 0.05 sec ago.

8
@vicevicebingo What?

9
See attached image.
Actually I think your code is wrong. The right code should be like this:

10
just add
set x to x of last created actor - half width for last created actor
set y to y of last created actor - half height for last created actor

Add this just after creating the actor. Just like in your first post

11
It doesn't matter that you create many actors as long as you put the block of [last created actor] right after creating an actor.

12
Ask a Question / Re: Can I move Scenes around?
« on: May 03, 2019, 12:41:46 pm »
They are always sorted alphabetically (works when reopening a project)
You can however put them in folders

13
just add
set x to x of last created actor - half width for last created actor
set y to y of last created actor - half height for last created actor

14
Ask a Question / Re: how can i make an actor follow another actor?
« on: May 03, 2019, 09:03:02 am »
How your current code looks like?

15
Thanks for testing it. The bone is a mistake btw
Yes, I know it's not the easiest level, but it's located in the middle of the game so the difficulty is gradually increasing

Pages: 1 2 3 ... 11