Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Text creation help

Author
Message
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 1st Feb 2022 20:34
So I am trying this the easy way,

Instead of creating 20 different text objects I am doing this

The problem is They do not have text numbers or names so i can not change there numbers. there all number 1

all I need is for each text to be a different number, they do nothing but sit there.

The author of this post has marked a post as an answer.

Go to answer

Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 1st Feb 2022 20:45
This post has been marked by the post author as the answer.
You really need to put your text objects in an array so that you can access each of them later.
Doing it your way, you won't be able to delete the text once the level selection is complete
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 1st Feb 2022 20:47
Scraggle

Ok, that was what I was thinking but had to make sure

Thank you
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 1st Feb 2022 20:59
You're also making a lot of work for yourself with those IF's
Try this:
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 1st Feb 2022 22:06
Scraggle

I know, this is why I was asking, I knew there was a better way I just could not figure it out.

This worked just right

I had to adjust the numbers around a bit but it works good,

thank you.
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 2nd Feb 2022 10:29 Edited at: 2nd Feb 2022 14:11



Ok so I loaded my images in the same way and it took awhile to figure out but my level select screen is working very well.

I see how I can make arrays for many items the easy way.

What I mean is I have been making empty arrays with types and this works perfect.

But the way you showed me is a easy way for a fast easy setup for arrays.

I have made arrays like this before, but in a backward thinking and not for like.

for x=1 to 30
make something
next x

but you unconfused me so I thank you.

Also doing long code and shorting it with step values I never understood till I played with it and now I know how to use step, in theory.
.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-21 12:29:21
Your offset time is: 2024-11-21 12:29:21