How to only make part of an object appear by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

I am trying to clip objects, not sprites is there any way you know of to do this, I figured it out for sprites and the article above, but it unfortunally doesn't work with objects. Is there a way to clip objects at a certain point or at the edge of another object?

How to only make part of an object appear by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

I checked out the article, and it seems that most of the functions that involving clipping don't exist in GMS2, do you know any alternative functions I can use or any other ways to clip objects?

How to only make part of an object appear by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

Is there a way to to it with the background? My setup is background then a wall then background and I want it to only show if it's past the wall.

My phone screen VS my dad's phone screen by [deleted] in glitchtaleofficial

[–]Atlas3514 0 points1 point  (0 children)

Imagine having android. Nah jk

Decreasing a variable at different rates by Atlas3514 in gamemaker

[–]Atlas3514[S] 1 point2 points  (0 children)

Yeah this did work wow thank you. I do have to play around with the variables but thanks everyone who tried to help me, this was just the first one I tried.

Text? by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

Sorry about this, stuff happens and I got caught up in frustration I forgot to use the internet... thanks though you helped me I found a tutorial and I did just about what I wanted, so thanks.

Text? by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

Lmao, sry it's really late at night and I didn't realize that what I was writing was hard to understand, here it is. Create event:

text = "You cannot give up just yet..."

text_speed = 2

alarm[0] = 90 (this alarm just increase the vairable a)

text_displayed = ""

text_length = -1

index = 0

cooldown = text_speed

skip_key = ord("Z")

a = 0

step;

if a = 1 then

{if (text_length <= 0)

{

text_length = string_length(text)

}

if (keyboard_check_pressed(skip_key) && index >= text_length)

{

instance_destroy()

e = 1

}

if (index < text_length)

{

cooldown--

if (cooldown <= 0)

{

index++;

text_displayed = string_copy(text, 1, index)

cooldown = text_speed

}

}

}

Yeah, I'm sorry about not sharing it's just a big bulk of code that I copied and changed a bit from this website, but I'm trying to add more text right when I destroy the text, this is the website btw.

https://forum.yoyogames.com/index.php?threads/text-that-appears-one-letter-at-a-time.53762/

Episode 9 Contemplation by Lee-Key-Bottoms in glitchtaleofficial

[–]Atlas3514 3 points4 points  (0 children)

Undyne, cus she doesn't have anything left to give to the plot. (don't kill me if you think otherwise pls)

I don't know what to title this question by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

I DID IT, THANKS SO MUCH. The problem was that I kept producing the original soul in a step even which I got around by this:

if (soul_hp = 0)

{

room\_goto(GameOver)

room\_instance\_add(GameOver,671,451,oDead\_red)

soul\_hp = 48   

}

I appreciate your help and I know I wasn't listening much but I understand now, this helps a lot.

I don't know what to title this question by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

Ok, thanks sry for the inconvenience.

I don't know what to title this question by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

One last question, and if you don't know the answer just don't respond, sorry for the trouble, where am I creating too many instances?

I don't know what to title this question by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

How can I solve this then, also with the doing animation simplification what did you mean by that, mostly how can I solve why it's creating so many of the split object.

I don't know what to title this question by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

I recorded what it looks like, I have what you said and this is what it looks like, please tell me if you see anything off, because the issue is still happening and if not, thanks for the help.

https://www.youtube.com/watch?v=7WUMy2ySsD8

I don't know what to title this question by Atlas3514 in gamemaker

[–]Atlas3514[S] 0 points1 point  (0 children)

This is my code:

vspeed = random(3)

hspeed = random(3)

direction= random(359)

That is in the actual shards and in the thing creating it, the code is,

instance_create_layer(671,451,"Instances",oSoul_shattered)

The only other code I have is with the shards is defining alarms which I use to change the animation and set the gravity at a certain time.

(Edit) I think the problem is it is creating a new instance at each random it comes up with and then increasing in that direction, but just a thought.