Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 559 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pixel Collision Example V2 : JRPG Basic Starter Template #465319
04/17/17 16:42
04/17/17 16:42
Joined: Feb 2013
Posts: 122
Maysville, Ga
Evo Offline OP
Member
Evo  Offline OP
Member

Joined: Feb 2013
Posts: 122
Maysville, Ga
Pixel Collision Example V2 : JRPG Basic Starter Template



I updated the original 2D pixel Collision template that I previously posted. It should now have the basic features for others to improve and be more usable as a simple foundation for a JRPG style game.

OVERVIEW :
Example displays Full 2D Pixel Collision and shows how large 2D levels can be created with a few layers of artwork.

UPDATE v2 :
Modified the 2d collision and fixed a few bugs.
There is now full movement at level edges and boundary limits (Camera will stop at level edges and allow player movement)

Extra Features :
* findPlayer(); //Function used to set the correct level positions for the level images and find the player in the level. (Used when loading a new level)

NOTE 1 : The player is not animated in this example and the level change code is in a while loop in the main function. Pressing Key 1 or 2 will instantly change 2D levels. It will be up to you how you wish to organize your code.
NOTE 2 : The collision settings are currently only set up for the small jrpg size player. Changing player size will require editing the players collision points that detect pixel collision.
NOTE 3 : When creating your own collision layers, make sure that there are no small spaces that the player can get wedged in. Otherwise the player could be pushed into and through the collision.

Download : JRPG Basic Starter Template

...

Last edited by EVO; 08/05/17 03:35. Reason: New Version Update
Re: 2D Pixel Collision - AUM84 Update [Re: Evo] #465323
04/18/17 08:59
04/18/17 08:59
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline
Senior Member
preacherX  Offline
Senior Member

Joined: Sep 2005
Posts: 352
Germany
Nice one!

Re: 2D Pixel Collision - AUM84 Update [Re: preacherX] #467479
08/05/17 03:36
08/05/17 03:36
Joined: Feb 2013
Posts: 122
Maysville, Ga
Evo Offline OP
Member
Evo  Offline OP
Member

Joined: Feb 2013
Posts: 122
Maysville, Ga
Update :
2D Pixel Collision v2 : Basic JRPG Starter Template
New version now available above.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1