boywhoflies wrote:Oh hey are you doing "splashes" in the topic title like Circuit or did you just shove that there randomly? :3
All of the other game topics had egotistical titles, so I decided to put one in for ET5 until Demo 4 comes out or something. No splashes necessary.
DEEMAN223344 wrote:Can you help me with the Red Spike engine?
OK, here's my pseudo-code.
Code: Select all
Information about object: RDownSpike
Sprite: RDownSpike
Solid: false
Visible: true
Depth: 80
Persistent: false
Parent: obj_place_holder_parent
Mask: <same as sprite>
Create Event:
set variable miny to y
set variable attacking to 0
Step Event:
if relative position (0,1) is not collision free for Only solid objects
jump to position (xprevious,yprevious)
reverse vertical direction
play sound NoHurt; looping: false
if y is smaller than miny
start moving in directions 000010000 with speed set to 0
set variable y to miny
set variable attacking to 0
if number of objects MainApple is Equal to 0
exit this event
if at position (self.x,MainApple.y) there is object MainApple
if y is smaller than MainApple.y
if attacking is equal to 0
create instance of object RDownSpikeS at relative position (0,-1)
start moving in directions 010000000 with speed set to 8
play sound RSpikeSpot; looping: false
set variable attacking to 1
Begin Step Event:
if direction is equal to 270
create instance of object RDownSpikeS at relative position (0,-1)
Collision Event with object MainApple:
for other object: if hurt is equal to 0
for other object: set variable hurt to 1
set the number of lives relative to -1
for other object: set Alarm 1 to 30
play sound PlayerHurt; looping: false
Collision Event with object RDownSpikeS:
for other object: destroy the instance