Login to PixelPAD
Save your project by logging in or signing up.
USERNAME OR EMAIL ADDRESS
PASSWORD
Forgot my Password?
Don't have an account?
Sign Up For PixelPAD
Save your project by logging in or signing up.
EMAIL ADDRESS
PASSWORD
CONFIRM PASSWORD
I already have an account
Sign up as a Teacher
Create classrooms, and monitor your students.
SCHOOL NAME
EMAIL ADDRESS
PASSWORD
CONFIRM PASSWORD
I already have an account
  • Introduction
  • Game
  • Start-loop
  • Objects
  • Sprites
  • Animation
  • Sounds
  • Rooms
  • Input
  • Collision
  • Functions
  • Camera
  • Fps
  • Text
  • Filters
  • Multiplayer
  • Legacy

PixelPAD 2D - collision

get_collision(obj: gameobject, filter: str) -> gameobject or bool

Example
Description
Gets a the first object of class Filter colliding with the object obj
Parameters
obj
The game object to check collisions for.

filter
Name of a game object asset, checks against all objects which are instances of that asset OR can check against a specific object

Return
The first game object that obj is colliding with if there is a collision, False otherwise.

get_collision_list(obj: gameobject, filter: str) -> list

Example
Description
Gets a list of objects of class Filter colliding with the object obj
Parameters
obj
The game object to check collisions for.

filter
Name of a game object asset, checks against all objects which are instances of that asset.

Return
A list of game objects that obj is colliding with. Empty list otherwise.

Collisions

Collision is when two GameObjects touch. PixelPAD2D defines the area of which an object can collide via their sprite's width and height.
PixelPAD
About Us
Arm Build 2.8.4
Resources
Documentation
Discord
EULA
Privacy Policy
Contact Us
hello@pixelpad.io
© 2023 All Rights Reserved. PixelPAD.io
Region: us-west-1