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.

Author
Message
DannyD
7
Years of Service
User Offline
Joined: 29th Aug 2017
Location:
Posted: 27th Jun 2018 15:53 Edited at: 28th Jun 2018 04:05
Hi Guru's

Pleas help me out on this...
I need to place the alphabet letters randomly on the screen, at given X/Y
without getting duplicate Alphabet letters.
Current Test Code!!

Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 27th Jun 2018 16:52 Edited at: 27th Jun 2018 17:03
I have assumed you dont want any letters to be placed on top of each other ....so this works ok



So its just 26 letters....on a grid ?? Also, You can press space to generate new positions.
DannyD
7
Years of Service
User Offline
Joined: 29th Aug 2017
Location:
Posted: 28th Jun 2018 00:17
Thank you Bengismo

Really appreciate

Question: How do you guys get the + Code Snippet block. I tried the code dropdown "appgamekit" but don't work
I don't post to the forum very often.

THank again


fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 28th Jun 2018 00:28 Edited at: 28th Jun 2018 00:31
Quote: "How do you guys get the + Code Snippet block"



you have to have a start tag and end tag so first you click code agk then you write/paste your code and click code agk again
"[ co de lang=agk]your code here[/ code]" if it works it should look something like this before you submit
fubar
DannyD
7
Years of Service
User Offline
Joined: 29th Aug 2017
Location:
Posted: 28th Jun 2018 04:02
Thanks Guys for the Help.

This is what I want to do for a little game for my grandson.
I've change the text to sprites from a Sprite Sheet with a Data Txt file
Might be usefull for some sort of game template.
And the Random function is really useful.




DannyD
7
Years of Service
User Offline
Joined: 29th Aug 2017
Location:
Posted: 28th Jun 2018 04:03
Here is the ZIP file with the Sprite Sheet

Cherio

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-23 17:33:05
Your offset time is: 2024-11-23 17:33:05