Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

My ParticleGenerator site [Particle2dx] support CoronaSDK
Started by hori Jul 22 2014 02:17 PM

12 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

hori

[GLOBAL: userInfoPane.html]
hori
  • Pro
  • Pip
  • 9 posts
  • Newbie

http://particle2dx.com/

 

Online Particle Generator.

download JSON directly from this site.

super easy & intuitive operation.

 

GoogleChrome recommended

 

video tutorial

https://www.youtube.com/channel/UCAa8s6pDjeER0SqMgvme4ew



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 10,358 posts
  • Jedi

Cool.  Thanks for sharing!



[TOPIC: post.html]
#3

Christopher Bishop

[GLOBAL: userInfoPane.html]
Christopher Bishop
  • Pro
  • PipPipPipPipPipPip
  • 364 posts
  • Jedi

Outstanding



[TOPIC: post.html]
#4

Erin

[GLOBAL: userInfoPane.html]
Erin
  • Pro
  • PipPipPip
  • 30 posts
  • Advanced Member

Thanks for sharing!



[TOPIC: post.html]
#5

undecode

[GLOBAL: userInfoPane.html]
undecode
  • Pro
  • PipPipPipPipPipPip
  • 123 posts
  • Jedi

Hori, it looks amazing.

 

Just one question, im trying to use it in my project and im having some problems with that.

 

I'm using (extracted from http://docs.coronalabs.com/daily/api/library/display/newEmitter.html):

-- Require the JSON library for decoding purposes
local json = require "json"

-- Read the exported Particle Designer file (JSON) into a string
local filePath = system.pathForFile( "particle_texture.json" )
local f = io.open( filePath, "r" )
local fileData = f:read( "*a" )
f:close()

-- Decode the string
local emitterParams = json.decode( fileData )

-- Create the emitter with the decoded parameters
local emitter1 = display.newEmitter( emitterParams )

-- Center the emitter within the content area
emitter1.x = display.contentCenterX
emitter1.y = display.contentCenterY

But i get an error saying emitter1 is = nil.

 

I have "particle_texture.json" and "particle_texture.png" in my folder.



[TOPIC: post.html]
#6

hori

[GLOBAL: userInfoPane.html]
hori
  • Pro
  • Pip
  • 9 posts
  • Newbie

i will check it . paste your json text here ↓



[TOPIC: post.html]
#7

undecode

[GLOBAL: userInfoPane.html]
undecode
  • Pro
  • PipPipPipPipPipPip
  • 123 posts
  • Jedi

Well nevermind I tried in my main PC and it's working perfectly. Very smooth effects, thanks for the effort.



[TOPIC: post.html]
#8

hori

[GLOBAL: userInfoPane.html]
hori
  • Pro
  • Pip
  • 9 posts
  • Newbie

I see. Good!!



[TOPIC: post.html]
#9

alzaabi98

[GLOBAL: userInfoPane.html]
alzaabi98
  • Starter
  • PipPipPipPipPipPip
  • 288 posts
  • Jedi

Great tool hori .. well done. do you have any sample for corona  sdk ?

 

undecode,

 

i tried your code but it does not work .. it gave me Attempt to index local 'emitter1' (a nil value) ??

 

 

regards

Abdulaziz



[TOPIC: post.html]
#10

undecode

[GLOBAL: userInfoPane.html]
undecode
  • Pro
  • PipPipPipPipPipPip
  • 123 posts
  • Jedi

Great tool hori .. well done. do you have any sample for corona  sdk ?

 

undecode,

 

i tried your code but it does not work .. it gave me Attempt to index local 'emitter1' (a nil value) ??

 

 

regards

Abdulaziz

 

 

Alzaabi, you need to be Pro in order to use advanced graphics.



[TOPIC: post.html]
#11

hori

[GLOBAL: userInfoPane.html]
hori
  • Pro
  • Pip
  • 9 posts
  • Newbie

thank you ,undecode.



[TOPIC: post.html]
#12

hori

[GLOBAL: userInfoPane.html]
hori
  • Pro
  • Pip
  • 9 posts
  • Newbie

tips
 
Temporary save & reopen
--------------------------------
save : on Export tab , click [cocos2dx png-contained] and get PList file.
reopen : you can drag PList on PreviewZone and reopen.
finally , click [CoronaSDK] to get json for CoronaSDK
 
I will add Video Tutorial later.


[TOPIC: post.html]
#13

pickerel

[GLOBAL: userInfoPane.html]
pickerel
  • Pro
  • PipPipPipPipPipPip
  • 61 posts
  • Jedi



[topic_controls]
[/topic_controls]