Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
mihaid
13
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 27th Jul 2014 10:03
Hello, i need some help pls.

I work with dark basic professional, and i try to make some explosion with sparks. I have the classical examples, and i want to use
06_ExplosionDemo. My problem is the example is working great, i love it and i want to put in my game.
I understand very well i need to make some changes, the scale...and so on....but i cant find some help what to change........I changed everything i supposed is related with increasing explosion power, scale, time......cant see nothing..
So, please, anybody can tell me what to change ?

Mihai
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th Jul 2014 12:03
06_ExplosionDemo?

Where is this?

Please post the code so we can analyse it...

mihaid
13
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 27th Jul 2014 13:11
sparks wrapper, downloaded from forum..very easy to find...http://forum.thegamecreators.com/?m=forum_view&t=191567&b=5

Mihai
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th Jul 2014 13:14
http://forum.thegamecreators.com/?m=forum_view&t=191567&b=5

Quote: "very easy to find..."


If you even bothered to mention it...

Not ever played with that so cannot help further...

GL...

Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 27th Jul 2014 14:06
Can you please show us your code and explain what's exacly the problem ?

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
mihaid
13
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 27th Jul 2014 14:18
Thank you, not important my code....problem is if i start an explosion at the given coordonates, i cant see nothing...even if i can see the demo perfectly (06_ExplosionDemo).

I suppose i need to increase the scale of explosion, this is my problem. I have a land, some action, and if i added the explosion script, i cant see nothing ....even i made some changes, to explode in the right location....or coordonates........or whatever..
So one of the questions is if how can I increase the scale of explosion......or ...i donno

Mihai
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th Jul 2014 14:24

Why do we bother sometimes...

mihaid you need to show us the code you are using or portions associated with what you are having difficulty with, or upload the exact code file you are having an issue with, we do not know your variables, loop structure or anything...

this is my last attempt to bother helping here...

No point in us downloading the mentioned code as it is your own changes that you are having issues with...



mihaid
13
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 27th Jul 2014 14:59
ok, please I'm sorry to be like that, no much experience on forum, anyway, I attached my work zipped (also images, textures...) so please help me...

The main ideea is i want to shoot with my helicopter, and make a nice and BIG explosion when i hit something....an enemy tank..or whatever..

Btw, i made myself the helycopter in 3dws, and also the land....

I added in the do-loop the trigger of explosion, and instead of rnd (5)....i changed with the explo coordonates.....i made a routine with explo initiations and the rest of code......nothing changed there....now....what to do???

Mihai

Attachments

Login to view attachments
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 27th Jul 2014 15:50 Edited at: 27th Jul 2014 15:56
Hi mihaid ! Well there's lots of problems in your code... first and most important thing is :
- You copy-pasted the original SPARK code from the demo in your project , which isn't a big problem , but all texture paths are wrong :
load image "media\explosion.bmp",textureExplosion
load image "media\flash.bmp",textureFlash
load image "media\spark1.bmp",textureSpark1
load image "media\point.bmp",textureSpark2
load image "media\wave.bmp",textureWave

You don't have a media folder under your project root dir... Make sure you copy the media folder to your project folder

2. If you change the resolution (set display mode) you need to call SP INIT to re-initialize the spark plugin.
i've also noticed that you copied the explosion code twice ! So be aware that you create 2 explosion prototypes when you call "explo" subroutine.


3. I HIGHLY RECOMMEND that you delete all the explosion creation code and use the "SP LOAD SYSTEM" istead. And load the Explosion.xml.


4 I'm not sure about this but as far as i can remember variables declared in a function or subroutine are local, so your expolsionPrototype variable is destroyed when you return from "explo" subroutine. You need to declare expolsionPrototype as a global variable


Regards

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
mihaid
13
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 27th Jul 2014 16:19
Thank you very much....i had the good path, but with so many changes....i made a mess...i'm sure all will be good for now, thanks again

Mihai
mihaid
13
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 27th Jul 2014 16:34
Now I can see my explosion and thank you very much.....but coming back to my first question.....the explosion is so small....and what parameters i need to change to see it bigger...excuse my rookie question, but i tried several parameters....nothing...anyway...i inserted sp init and after that i seen my explo

Mihai
mihaid
13
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 27th Jul 2014 17:08
OK>>> !!!I discovered what to change to increase the scale..thank you very much for all !!!!!

Mihai

Login to post a reply

Server time is: 2025-05-14 19:44:49
Your offset time is: 2025-05-14 19:44:49