Post new topic    
Page «  1, 2, 3 ... 85, 86, 87 ... 99, 100, 101  »
Liquid Metal King Slime
Send private message
 
 PostSat Sep 19, 2015 3:17 am
Send private message Reply with quote
looks great rmz. i love the power bar at the bottom.
Liquid Metal King Slime
Send private message
 
 PostFri Oct 09, 2015 9:37 pm
Send private message Reply with quote
What is the matter with me?



Code:
script, tile x by pixel pos, px, py, begin
  variable(x, y, odd)
  y := tile y by pixel pos(px, py)
  odd := (y ,mod, 2) == 1
  if(odd) then( px -= tilesize / 2)
  x := px / tilesize -- (py -- tilesize / 8) / 2 / (tilesize * 3 / 4)
  exit returning(x)
end

script, tile y by pixel pos, px, py, begin
  exit returning((py -- tilesize / 8) / (tilesize * 3 / 4))
end
Metal Slime
Send private message
 
 PostFri Oct 09, 2015 9:57 pm
Send private message Reply with quote
Non-rectangular tiles (that are also larger than 20x20) as well as pathfinding? What's going on here?
Liquid Metal King Slime
Send private message
 
 PostFri Oct 09, 2015 10:06 pm
Send private message Reply with quote
Pheonix wrote:
Non-rectangular tiles (that are also larger than 20x20) as well as pathfinding? What's going on here?


The hexagonal maptiles are actually hero sprite slices

The pathfinding is A-star pathfinding implemented in plotscripting, and using fake arrays made out of invisible slices
Liquid Metal King Slime
Send private message
 
 PostFri Oct 09, 2015 11:43 pm
Send private message Reply with quote
Why is she in a bikini in the snow?!
Liquid Metal Slime
Send private message
 
 PostSat Oct 10, 2015 2:04 am
Send private message Reply with quote
Spoonweaver wrote:
Why is she in a bikini in the snow?!


It's called armor, Spoon. Duh.

EDIT: Hold on, I should specify. It's Battle Ready Armor.


My pronouns are they/them
Ps. I love my wife
Liquid Metal Slime
Send private message
 
 PostSun Oct 11, 2015 9:23 pm
Send private message Reply with quote
Quote:
The pathfinding is A-star pathfinding implemented in plotscripting, and using fake arrays made out of invisible slices


Is the code you displayed part of the A-star pathfinding, or is it just part of identifying the tile as a valid move location? If it is, can you break down the parts? To me, it looks more like it's trying to validate the tile as a legit move location, but if I'm missing the pathfinding elements in that script, I want to be able to identify them.
Place Obligatory Signature Here
Liquid Metal King Slime
Send private message
 
 PostSun Oct 11, 2015 10:38 pm
Send private message Reply with quote
That code is for converting pixel coordinates (such as a mouse click) into hex grid coordinates (for knowing which hex tile was clicked on)

I'll post the full script when the game is demo ready
Liquid Metal Slime
Send private message
 
 PostSun Oct 11, 2015 10:41 pm
Send private message Reply with quote
Cool. I know I've asked about A-star multiple times now, but I find it's easiest to understand unfamiliar code when someone more skilled does it (and explains it) first.
Place Obligatory Signature Here
Metal King Slime
Send private message
 
 PostTue Oct 13, 2015 8:11 am
Send private message Reply with quote
Bob the Hamster wrote:
Cursed Potion Of Resist Ice (cpori)

This makes much more sense now!

There are two natural orientations for a hex grid. There are heaps of great references for hex grids, A*, and a whole lot else on Amit's game programming page.
Liquid Metal King Slime
Send private message
 
 PostTue Oct 13, 2015 2:03 pm
Send private message Reply with quote
The guide that helped me the most with hexagonal grids was this one: http://www.redblobgames.com/grids/hexagons/

The one that helped me the most with A-star was this one: http://www.policyalmanac.org/games/aStarTutorial.htm It talks about 8-direction pathfinding on a regular square grid, but the concept was easy to apply to hexagonal grid once I understood it.
Liquid Metal Slime
Send private message
 
 PostSun Nov 15, 2015 12:57 am
Send private message Reply with quote
Here's a video of my latest stuff:
https://www.youtube.com/watch?v=HZllWGeM2DY

And some things to come (maybe)...






⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
⍠ C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Liquid Metal Slime
Send private message
 
 PostSun Nov 15, 2015 6:02 am
Send private message Reply with quote
Third graphic there makes me think of Blaster Master
Remeber: God made you special and he loves you very much. Bye!
Liquid Metal Slime
Send private message
 
 PostSun Nov 15, 2015 6:29 am
Send private message Reply with quote
Nathan Karr wrote:
Third graphic there makes me think of Blaster Master


Really? I'm not seeing it but will take that as a compliment nonetheless haha.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
⍠ C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Liquid Metal Slime
Send private message
 
 PostSun Nov 15, 2015 7:18 pm
Send private message Reply with quote
sheamkennedy wrote:
Nathan Karr wrote:
Third graphic there makes me think of Blaster Master


Really? I'm not seeing it but will take that as a compliment nonetheless haha.


Fairly large sprite of a guy with a gun and a big head who walks in four directions so yeah, totally.
Remeber: God made you special and he loves you very much. Bye!
Display posts from previous:
Page «  1, 2, 3 ... 85, 86, 87 ... 99, 100, 101  »