User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
journal:spring2019:wprice2:week13 [2019/05/01 11:24]
wprice2 [May 1st, 2019]
journal:spring2019:wprice2:week13 [2019/05/01 23:42]
wprice2 [MONTH Day, YEAR]
Line 6: Line 6:
 =====sysprog week13===== =====sysprog week13=====
 ---- ----
-====MONTH DayYEAR====+====May 1st2019====
-Filler text- your entry goes here; remove this line to receive full credit.+While coding the mechanics for the portals, I came across a difficult hurtle. For some reason, my portals occasionally kill me. Trying ​to fix the problem, I improved upon the hit detection for teleportation so that as soon as the player comes into contact with the portal, they are teleported to the out portal with the same relative positioning they would have with the in portal. The first run was perfect, whenever I touched a in portal I was successfully teleported to the out portal. However, the positioning I had for the in portals at that time were not correct so I readjusted their x coordinates and after my next run, something went wrong and now all of the portals inflict instant death upon the player. However, the only way we have deaths programed is by the spikes, so that must mean that the teleporter somehow teleports the player into the space of the spikes.
journal/spring2019/wprice2/week13.txt · Last modified: 2019/05/01 23:48 by wprice2