Help with Variables In When Bumps/Touching

Can someone help me? Every time I add a set variable block into a bumps or touching block my draft freezes. I would ask this in the specific category, but I can’t make topics yet.

8 Likes

@Awesome_E

2 Likes

A link would be nice.

Also, I split this into a new topic for you :slight_smile: feel free to edit the op and title

3 Likes

Destroyed object error, referencing bumps with any destroyed object or clone freezes the game.

It’s not because of te set variable, it’s because there is code in some form in the bumps rule

3 Likes

What are you talking about?

2 Likes

Basic (TL1) cannot make Topics, a lead split the post

3 Likes

Do you mean New User (TL0)? When I was a basic, I could make topics.

2 Likes

TL abilities and requirements have changed

5 Likes

Maybe make the collisions smoother?

2 Likes

So you’re saying when I run this:

When Self bumps Target
    Set Vertical velocity to 0
    Set Horizontal velocity to 0
End

It runs this:

When Self bumps Target
    Freeze project
    Set Vertical velocity to 0
    Set Horizontal velocity to 0
End
3 Likes

Only if any clone of your target is destroyed. Pretty much yes

2 Likes

Could you give more info?
Thanks!

1 Like

So I have a game where you shoot a arrow at a target. When the arrow hits the target it should stop.

When I run this:

When Self (Arrow) bumps Target
    Set Horizontal velocity to 0
    Set Vertical velocity to 0
End

It freezes the entire project and only the background loads. Is this helpful?

4 Likes

Can you post a link?
That’d be better than a snippet of code

3 Likes

The block for “bumps” is very laggy, what shapes are you using

2 Likes

I can’t include links yet, but you can check my profile.

All the objects I use start out as text objects, although in this case, I set its text to a arrow.

Oh oof,
Can you give us the project uuid? I can get you the link from that

2 Likes

@FearlessPhoenix

1 Like

Yep I saw the project.

Thanks.
I’ll post the link here for everyone else too

2 Likes

Oh, thanks! I’ll take it down once it’s fixed.

1 Like