Author Topic: Tilemaps with different types of collisions?  (Read 2292 times)

0 Members and 1 Guest are viewing this topic.

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Tilemaps with different types of collisions?
« on: February 21, 2013, 02:23:30 pm »
I'm porting VVVVVV to the calculator: http://ourl.ca/18384

I don't know how to get spikes to work, though. (instant death)

How do you make the type of tilemap shown in the screenie have collisions based on what type of block you hit?

Attached is the source
I am Bach.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Tilemaps with different types of collisions?
« Reply #1 on: February 21, 2013, 04:37:39 pm »
Simple! You just gotta add a return value to the collision detection subroutine. If there is a spike you die :3
If you like my work: why not give me an internet?