pipelines

Here you can talk about everything you want.
User avatar
RopaSucia
Metropolitan
Reactions:
Posts: 116
Joined: 06 Dec 2019, 18:13
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

pipelines

#1

Post by RopaSucia »

How can I create a pipelines plugin ? :bq :mine

User avatar
CommanderABab
AB
Reactions:
Posts: 11107
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: pipelines

#2

Post by CommanderABab »


User avatar
RopaSucia
Metropolitan
Reactions:
Posts: 116
Joined: 06 Dec 2019, 18:13
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: pipelines

#3

Post by RopaSucia »

[
{
"id":"$pipeKd00",
"type":"pipe",
"frames":[{"bmp":"image4.png"}],
"price":50,
"preview frames":[{"x":448,"y":720,"w":64,"h":32}]
}
]

User avatar
RopaSucia
Metropolitan
Reactions:
Posts: 116
Joined: 06 Dec 2019, 18:13
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: pipelines

#4

Post by RopaSucia »

Screenshot_20200508-185508.png

User avatar
CommanderABab
AB
Reactions:
Posts: 11107
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: pipelines

#5

Post by CommanderABab »

You might try studying this file:
content_water.json
(2.34 KiB) Downloaded 65 times
from this topic: viewtopic.php?p=78067#p78067

by Lobby.

Code: Select all

... {
      "id":"$pipe00",
	  "type":"pipe",
	  "frames":[{"x":1536,"y":1968,"w":32,"h":16,"count":16}],
	  "price":50,
     "preview frames":[{"x":448,"y":720,"w":64,"h":32}]
   },... 
The x and the y in the frames statement are where the game finds the pipes in the world texture. So, there are count 16 images of pipes there of width w 32 and height h 16.
Show
2 ways of making the frames

Code: Select all

   "frames":[{"bmp":"image.png","w":32,"h":16,"count":16}], 
or

Code: Select all

   "frames":[ 
     {"bmp":"image1.png"},...
     {"bmp":"image16.png"}
   ], 
where image1 through image16 are each 32 pixels wide and 16 pixels high.



Would fit the first statement.
Would fit the first statement.
redpipe.png (5.9 KiB) Viewed 1975 times

User avatar
RopaSucia
Metropolitan
Reactions:
Posts: 116
Joined: 06 Dec 2019, 18:13
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: pipelines

#6

Post by RopaSucia »

I realized my mistake
I was missing I defined "H" "W" "count"

Post Reply Previous topicNext topic

Return to “Smalltalk”