Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 04-09-2009, 09:16 AM
c4esar c4esar is offline
Member
 
Join Date: Mar 2009
Location: Germany
Posts: 41
Default Add force to a spriteparticle (jumping)

Hi!
I've got problems with the APE-model.
How can I add a force to only one particle of a group, e.g. the main character, to make it jump or sth like that? Or do I have to move the sprite?
I've searched around the forum and the helpfile, but didn't find a doku or tut for that - maybe I'm too stupid...
Would be kind if someone could give me a little advice..
Thanks a lot!
Reply With Quote
  #2  
Old 04-09-2009, 09:43 PM
zehlein zehlein is offline
Senior Member
 
Join Date: Sep 2006
Location: Leipzig, Germany
Posts: 596
Default

I never worked with APE but from what I see I would suggest two possibilities.
* Particle_AddForce
* Particle_Velocity
Those APE-related functions are hard to find, they are not documented. I attach a little funclist.ppl-file that lists all available PPL functions in to a file "fnc.txt". There you find the APE-related functions listed among all the others.
To know what you should look for it might be a good idea to have a look at the APE-API here.
Attached Files
File Type: zip FuncList.zip (249 Bytes, 126 views)
Reply With Quote
  #3  
Old 04-09-2009, 10:22 PM
c4esar c4esar is offline
Member
 
Join Date: Mar 2009
Location: Germany
Posts: 41
Default

Thank you very much Zehlein (für die Hilfe aus Laipzsch !
It's quite hard for me to learn the ropes of PPL, because usually I'm just using PHP and Javascript... To me that's a totally different way of thinking
But now I've got four days full of freetime to spend with the APE-Api and all that funcs...

Greetz, c4esar
Reply With Quote
  #4  
Old 04-09-2009, 10:46 PM
zehlein zehlein is offline
Senior Member
 
Join Date: Sep 2006
Location: Leipzig, Germany
Posts: 596
Default

Good luck for your work with PPL and don't forget to show us your results in the "Made with PPL" forum!

(De Sachsen sin hald ä nettes Völkschn... )

Last edited by zehlein; 04-10-2009 at 11:16 AM. Reason: Typo
Reply With Quote
  #5  
Old 04-09-2009, 11:07 PM
c4esar c4esar is offline
Member
 
Join Date: Mar 2009
Location: Germany
Posts: 41
Default

Yes indeed!
I'll do, I promise...
(Hopefully there'll be sth to present)
Reply With Quote
  #6  
Old 04-15-2009, 12:30 PM
c4esar c4esar is offline
Member
 
Join Date: Mar 2009
Location: Germany
Posts: 41
Default

Well after a few days of tial-and-error I finally found out how to let it jump around..

* Particle_AddForce (Particle, ForceX, ForceY)
would do it, but the acceleration is too slow for jumping (the force is added little by little)

* Particle_SetVelocity (Particle, VelocityX, VelocityY)
works for me, because it sets the particle's velocity to the stated values at once


(sorry for my inadequate description of the paramters)
Reply With Quote
  #7  
Old 04-15-2009, 05:01 PM
zehlein zehlein is offline
Senior Member
 
Join Date: Sep 2006
Location: Leipzig, Germany
Posts: 596
Default

Good to hear you worked it out!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd