Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

object

  1. J

    How create a new object with different values

    I'm new to Lua, but not to coding. Most of my coding has been in C++. I really confused about the syntax around creating and instantiating objects. The code below is working, but how do I create a new object with a different table and a different x and y? pad={ x=63, y=63, w=9, h=1, clr=143...
  2. Velpus Captiosus

    Python Element is added to a list when it shouldnt

    Hello everyone.Only part of the Node class is relevant to my question: import math class Node: prevNodes = [] b = 0.5 def __init__(self,value,nextNode): self.value = 0 if nextNode is not None: self.nextNode = nextNode...
  3. A

    JavaScript why do both objects move?

    0 I want two separate objects on a page to be moveable by the user - mouse click and drag. I'm having all sorts of problems achieving this. the following test code baffles me. Both objects get moved and I cannot work out why. / <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >...
Back
Top Bottom