4 Replies - 350 Views - Last Post: 24 April 2013 - 09:55 AM Rate Topic: -----

#1 psh  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 65
  • Joined: 25-March 13

Moving sprite(car) lingo

Posted 24 April 2013 - 09:40 AM

I have to make a racing game in lingo and i need some help i made my car moving but when i release the arrow key my car
stops immediately.. :whatsthat:


property ch

on beginSprite me
  ch  = me.spriteNum
  my_x = sprite(ch).locH
end

on exitFrame me
  
  if keyPressed(126) then
    
    repeat with a = 1 to 10
      sprite(2).locv = sprite(2).locV - 1.5
      end repeat    
end if
end




Is This A Good Question/Topic? 0
  • +

Replies To: Moving sprite(car) lingo

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8957
  • View blog
  • Posts: 33,584
  • Joined: 12-June 08

Re: Moving sprite(car) lingo

Posted 24 April 2013 - 09:48 AM

You need to not have movement associated with the key, but instead the key press increases the car's velocity.. and in the game engine if the car has velocity keep moving it.
Was This Post Helpful? 0
  • +
  • -

#3 psh  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 65
  • Joined: 25-March 13

Re: Moving sprite(car) lingo

Posted 24 April 2013 - 09:50 AM

View Postmodi123_1, on 24 April 2013 - 04:48 PM, said:

You need to not have movement associated with the key, but instead the key press increases the car's velocity.. and in the game engine if the car has velocity keep moving it.


im using director mx ..can i do that?
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8957
  • View blog
  • Posts: 33,584
  • Joined: 12-June 08

Re: Moving sprite(car) lingo

Posted 24 April 2013 - 09:53 AM

In theory - yeah.
Was This Post Helpful? 0
  • +
  • -

#5 psh  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 65
  • Joined: 25-March 13

Re: Moving sprite(car) lingo

Posted 24 April 2013 - 09:55 AM

View Postmodi123_1, on 24 April 2013 - 04:53 PM, said:

In theory - yeah.


Could you please help me a bit to start..i dont know the logic how to do it :helpsmilie:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1