Hey everyone,
I currently have set up an event touch function, which allows my character to successfully jump. I wanted to add a function where if the event.phase “moved” then the character would jump higher. Here is my code, and I would appreciate if someone could tell me what is wrong with it. Thanks!
[code]
function touched( event )
if event.phase == “began” then
if event.x < 241 then
if onGround then
monster.accel = monster.accel + 29
end
elseif event.phase == “moved” then
if event.x < 241 then
if onGround then
monster.accel = monster.accel + 32
end
return true
end
[import]uid: 175550 topic_id: 31033 reply_id: 331033[/import]