SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > Outdated Releases (2.1.X) > Software (2.1.X)

 
 
Thread Tools
GetCoord (a sprite coordinate retreiver) Details »»
GetCoord (a sprite coordinate retreiver)
Version: 1.0, by Varren (local furry) Varren is offline
Developer Last Online: Aug 2020

Category: Version: SRB2 Rating:
Released: 07-29-2019 Last Update: Never Favourites: 0
Scripts

This is a Lua script for Aseprite that extracts HUD coordinates or creates TEXTURES data using sprite cel layers in the program


It can also be used to prototype on screen elements and copy their positions for later use

It is very simple to use, and all you need to do in the end is ctrl+c the log and paste anywhere in a wad/pk3 or script for use

Usage:
Spoiler: Hud item


This lets you be able to arrange hud items and get tne output x and y values without needing to second-guess them yourself




You can make a background layer for reference, and switch the layer to continuous (two dots) to exclude it from the output log


Spoiler: TEXTURES


This lets you be able to form a TEXTURES group and get the definition to paste inside of a TEXTURES lump of a wad



Switch the layer to continuous (two dots) to exclude it from the output log

To enable, open aseprite, and go through 'File -> Scripts -> Open scripts folder' to place it in the scripts folder




If you use aseprite and are tired of counting pixels (and is the sole reason why I made this), then it may be useful to you :)



Spoiler: "Other notes

Due to the aseprite api not being flexible enough, features such as using sprite groups can not be done at the moment.
sprites inside group folders can still be read, but the entire group will not be treated as one entire cel

Download Now

File Type: zip getcoord-[aseprite].zip (367.6 KB, 95 views)

Screenshots

Click image for larger version

Name:	srb20004-hud.gif
Views:	231
Size:	3.31 MB
ID:	20908   Click image for larger version

Name:	srb20005-textures.gif
Views:	171
Size:	15.5 KB
ID:	20909  

Show Your Support

  • This addon may not be copied, reproduced or published elsewhere without the author's permission.

Comments
Old 07-29-2019   #2
Prime 2.0
Grape flavored
Permanently Banned
Default

That sounds pretty cool, but is there a way to set where the HUD elements are anchored to so that they stick to the correct side of the screen in non-green resolutions?

As for judging, may I cooperate with a non-judge to help test this?
Prime 2.0 is offline  
Old 07-29-2019   #3
Varren
local furry
Developer
 
Varren's Avatar
Default

Quote:
Originally Posted by Prime 2.0 View Post
That sounds pretty cool, but is there a way to set where the HUD elements are anchored to so that they stick to the correct side of the screen in non-green resolutions?

As for judging, may I cooperate with a non-judge to help test this?

Not at the moment, not sure either because the api is very limiting in what it allows me to do right now, but I can see if there is a way to attempt that soon!


And sure, go for it!

Last edited by Varren; 07-29-2019 at 11:08 PM.
Varren is offline  
Old 07-31-2019   #4
SeventhSentinel
STJr Team Representative
Administrator
 
SeventhSentinel's Avatar
Default

Welcome to Releases! Special thanks to Chrispy for verifying this works for us.
__________________
FM synths forever.
My stuff: SeventhSentinel#4892 on Discord / Twitter / Primary YouTube / Secondary YouTube / SoundCloud / Twitch
Follow STJr on social media: YouTube / Twitter / Facebook
Follow Kart Krew on social media: YouTube / Twitter / Facebook
Chat on Discord: SRB2 / Kart Krew
SeventhSentinel is offline  
Old 08-01-2019   #5
Chrispy
Moderators
Moderator
 
Chrispy's Avatar
Default

A neat tool! I'm excited to see someone making srb2 tools with aseprite's scripting extensions.
__________________
I'm just the guy that makes the Sonics
Chrispy is offline  
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:30 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.