Top sellers


Product Code: jpevent
Availability: In Stock
Built for: Cancel/pause/resume posted events
Product Version: 2.0
Online Demo: http://www.julien-pierron.com/sample?sample=jpdemo
Forum Link: http://www.shiva-engine.com/forum/viewtopic.php?f=82&t=29258
Req. ShiVa Version: ShiVa 1.9.2 Engines
Plugin Platform Compatibility: iOS, Android, WinRT ARM/Phone 8, WinRT x86/_64, Windows Legacy, Mac OS X, Linux, Flash, Web Browser, Palm, Marmalade, BlackBerry, Windows Phone 7, Playstation 3, Playstation 4, Xbox 360, Xbox One, Wii, tvOS
Price: $32.00
Seller information: Julien Pierron
Country: France, Metropolitan
Company: Julien Pierron
Qty:     - OR -   Wish List
Who has never be in need to cancel a posted event?

JPEvent is a very useful tool. With this tool, you will be able to control events you have posted. It allows you to cancel events, to pause or resume them, and also to add some additional delay.

You will be able to do actions on several events at once, thanks to the patterns support.

JPEvent provides various functions, to target object events only, user events, events sent in a scene or in the whole application. Here are a couple of functions:

--All of these functions can be used with patterns!
user.cancelEvents ( hUser )
scene.pauseObjectEvents ( hScene, "MonsterType.*", ".*" )
object.resumeEvents ( hObject, ".*", "onAttack" )
application.delayEvents ( 3 )

All of the available functions can be found in the API page of JPEvent.

JPEvent also provides a new feature when sending events, the possibility to use a pattern in place of the AIModel name. With this king of feature, you will be able to send events to several AIModels at once. This feature works for both users and objects, with postEvent, sendEvent and sendEventImmediate. Also, 3 new functions are available, to be able to send events to the current user without having to use its handle:

application.postEventToCurrentUser ( nDelay, sAIModelPattern, sHandler, vParam0, ... )
application.sendEventImmediateToCurrentUser ( sAIModelPattern, sHandler, vParam0, ... )
application.sendEventToCurrentUser ( sAIModelPattern, sHandler, vParam0, ... )

Finally, it offers a very interesting feature: it sends a "onWillBeDestroyed" to any AIModel, just before it will be destroyed. This is really great, it allows you for instance to free the allocated resources during the AIModel life time. It works for any AIModel, for both users and objetcs, an occurs in the following cases:
- When you manually call removeAIModel
- When a scene is closed
- When a user or object is destroyed
- When the application quits or is restarted

General information :
- This product is compatible with both ShiVa 1.9.2 and 2.0.

- ShiVa 1.9.2 or greater´╗┐´╗┐´╗┐
- LUA project (not compatible with full c++ projects, compatible with LUA projects that use c++ plugins)

You can find an introduction to the packs and how to load them in your game here:

API & Instructions


Sample projects that use my packs

Write a review

Your Name:

Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:

ShiVa Store © 2019 - Powered By OpenCart