The Daily Click ::. Forums ::. Klik Coding Help ::. Check objects moving around
 

Post Reply  Post Oekaki 
 

Posted By Message

LordHannu

Crazy?

Registered
  22/04/2007
Points
  7910

VIP MemberStarTeddy BearRibbonGame of the Week Winner2021 Halloween Competition Winner2022 Hi-Score Mash-up Competition (Bronze)2023 Halloween Competition (Bronze)2023 Halloween Competition Entrant
29th March, 2022 at 29/03/2022 22:13:14 -

After many years I figured this out. After doing array level editors and checking values inside the arrays, if its a obstacle or not. I found there is a test for obstacle. Now you can check for your 2d games. If a enemy is near an obstacle left, right up and down or what ever coordinate you wish. I wish i knew this years ago. I Linked an example you can see for yourself, This is based on a 32x32y tile grid for example you can have what ever values you want.

only 5 events.

Hop+e its useful for you as it was for me.

https://splattersoft.com/TestForCollition2.mfa

 
n/a

BigAl0104

Crazy?

Registered
  21/04/2018 19:13:09
Points
  5937

2022 Hi-Score Mash-up Competition (Bronze)2023 Halloween Competition (Silver)2023 Halloween Competition Entrant
30th March, 2022 at 30/03/2022 07:15:34 -

It works pretty well surprisingly, and will definitely be a replacement for path movements in games for some.

 
My site: https://www.bigalgames.net/
My GameJolt account: https://gamejolt.com/@BigAl0104
My itch.io page: https://bigal0104.itch.io/
My Newgrounds page: https://bigal0104.newgrounds.com/
My YouTube channel: https://www.youtube.com/channel/UCSleyPmbPRipQH0knXPUf5Q
My Discord server: https://discord.gg/HYN859F

Be happy with yourself, and get jiggy with it!
   

Post Reply



 



Advertisement

Worth A Click